|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.commons.predicate.DepthPredicate
org.apache.jackrabbit.commons.predicate.IsNodePredicate
public class IsNodePredicate
Item filter that checks if an item is a node.
Field Summary | |
---|---|
protected boolean |
isNode
Polarity of this filter |
Fields inherited from class org.apache.jackrabbit.commons.predicate.DepthPredicate |
---|
maxDepth, minDepth |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected boolean |
matches(Item item)
Returns true if the item is a node and the polarity is
positive (true). |
Methods inherited from class org.apache.jackrabbit.commons.predicate.DepthPredicate |
---|
evaluate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final boolean isNode
Constructor Detail |
---|
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.Method Detail |
---|
protected boolean matches(Item item) throws RepositoryException
true
if the item is a node and the polarity is
positive (true).
matches
in class DepthPredicate
item
- the item to match
true
if the item matches; false
otherwise.
RepositoryException
- if an error occurs.DepthPredicate.matches(javax.jcr.Item)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |