public class IsNodePredicate extends DepthPredicate
Modifier and Type | Field and Description |
---|---|
protected boolean |
isNode
Polarity of this filter
|
maxDepth, minDepth
Constructor and Description |
---|
IsNodePredicate()
Default constructor.
|
IsNodePredicate(boolean polarity)
Creates a new node item filter
|
IsNodePredicate(boolean polarity,
int minDepth,
int maxDepth)
Creates a new node item filter.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(javax.jcr.Item item)
Returns
true if the item is a node and the polarity is
positive (true). |
evaluate
public IsNodePredicate()
public IsNodePredicate(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 depthDepthPredicate
public IsNodePredicate(boolean polarity)
polarity
- the polarity of this filter. if true
it matches
nodes, if false
it matches properties.protected boolean matches(javax.jcr.Item item) throws javax.jcr.RepositoryException
true
if the item is a node and the polarity is
positive (true).matches
in class DepthPredicate
item
- the item to matchtrue
if the item matches; false
otherwise.javax.jcr.RepositoryException
- if an error occurs.DepthPredicate.matches(javax.jcr.Item)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.