public class IsNodeFilter extends DepthItemFilter
ALL, NONE| Constructor and Description |
|---|
IsNodeFilter()
Default constructor.
|
IsNodeFilter(boolean polarity)
Creates a new node item filter
|
IsNodeFilter(boolean polarity,
int minDepth,
int maxDepth)
Creates a new node item filter.
|
| 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 |
setIsNode(java.lang.String polarity)
Sets the polarity of this filter.
|
void |
setPolarity(java.lang.String polarity)
Sets the polarity of this filter.
|
matches, setMaxDepth, setMinDepthpublic IsNodeFilter()
public IsNodeFilter(boolean polarity,
int minDepth,
int maxDepth)
polarity - the polarity of this filter. if true it matches
nodes, if false it matches properties.minDepth - the minimum depthmaxDepth - the maximum depthDepthItemFilterpublic IsNodeFilter(boolean polarity)
polarity - the polarity of this filter. if true it matches
nodes, if false it matches properties.public void setPolarity(java.lang.String polarity)
true this filter
matches nodes otherwise properties.polarity - the polaritypublic void setIsNode(java.lang.String polarity)
true this filter
matches nodes otherwise properties.polarity - the polaritypublic boolean matches(Item item)
throws RepositoryException
true. Subclasses can override to implement something
useful that is dependant of the depth.
Returns true if the item is a node and the polarity is
positive (true).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 level"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"