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(String polarity)
Sets the polarity of this filter.
|
void |
setPolarity(String polarity)
Sets the polarity of this filter.
|
matches, setMaxDepth, setMinDepth
public 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 depthDepthItemFilter
public IsNodeFilter(boolean polarity)
polarity
- the polarity of this filter. if true
it matches
nodes, if false
it matches properties.public void setPolarity(String polarity)
true
this filter
matches nodes otherwise properties.polarity
- the polaritypublic void setIsNode(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 DepthItemFilter
item
- 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 Dumpable
dump
in class DepthItemFilter
ctx
- the dump contextisLast
- specifies if this is the last element to dump on this levelCopyright © 2010 - 2020 Adobe. All Rights Reserved