public class DepthItemFilter extends Object implements ItemFilter
ALL, NONE| Constructor and Description |
|---|
DepthItemFilter()
Default constructor.
|
DepthItemFilter(int minDepth,
int maxDepth)
Creates a new depth filter for the given 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. |
boolean |
matches(Item item,
int depth)
Checks if the given item matches this filters criteria.
|
void |
setMaxDepth(String maxDepth)
Sets the maximal depth
|
void |
setMinDepth(String minDepth)
Sets the minimal depth
|
public DepthItemFilter()
public DepthItemFilter(int minDepth,
int maxDepth)
minDepth - the minimal depthmaxDepth - the maximal depthpublic void setMinDepth(String minDepth)
minDepth - the minimal depthpublic void setMaxDepth(String maxDepth)
maxDepth - the maximal depthpublic boolean matches(Item item, int depth) throws RepositoryException
matches(Item)
returns true.matches in interface ItemFilteritem - the item to checkdepth - a relative depth.true if this filter matches the criteria;
false otherwise.RepositoryException - if an error occurs.public boolean matches(Item item) throws RepositoryException
true. Subclasses can override to implement something
useful that is dependant of the depth.item - the item to matchtrue if the item matches; false otherwise.RepositoryException - if an error occurs.public void dump(DumpContext ctx, boolean isLast)
Copyright © 2010 - 2020 Adobe. All Rights Reserved