public class NameItemFilter extends DepthItemFilter
ALL, NONE| Constructor and Description |
|---|
NameItemFilter()
Default constructor
|
NameItemFilter(String name)
Creates a new name filter with the given name.
|
NameItemFilter(String name,
int minDepth,
int maxDepth)
Creates a new name filter with the given name and depths
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DumpContext ctx,
boolean isLast)
Dumps some human readable information using the given context.
|
boolean |
matches(Item item)
Returns
true. |
void |
setName(String name)
Sets the name
|
matches, setMaxDepth, setMinDepthpublic NameItemFilter()
public NameItemFilter(String name, int minDepth, int maxDepth)
name - the name to filter onminDepth - the minimal depthmaxDepth - the maximal depthpublic NameItemFilter(String name)
name - the name to filter onpublic void setName(String name)
name - the namepublic boolean matches(Item item) throws RepositoryException
true. Subclasses can override to implement something
useful that is dependant of the depth.
Returns true if the name of the given item is equal to
the configured name.matches in class DepthItemFilteritem - the item to matchtrue if the item matches; false otherwise.RepositoryException - if an error occurs.public void dump(DumpContext ctx, boolean isLast)
dump in interface Dumpabledump in class DepthItemFilterctx - the dump contextisLast - specifies if this is the last element to dump on this levelCopyright © 2010 - 2020 Adobe. All Rights Reserved