|
||||||||||
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.DeclaringTypePredicate
public class DeclaringTypePredicate
Filter that checks the declared type of an item
Field Summary | |
---|---|
protected String |
nodeType
The nodetype to check |
protected boolean |
propsOnly
indicates if only props should be checked |
Fields inherited from class org.apache.jackrabbit.commons.predicate.DepthPredicate |
---|
maxDepth, minDepth |
Constructor Summary | |
---|---|
DeclaringTypePredicate(String nodeType,
boolean propsOnly)
Creates a new filter for the given nodetype and flags |
|
DeclaringTypePredicate(String nodeType,
boolean propsOnly,
int minDepth,
int maxDepth)
Creates a new filter for the given nodetype and flags. |
Method Summary | |
---|---|
protected boolean |
matches(Item item)
Matches if the declaring nodetype of the item is equal to the one specified in this filter. |
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 String nodeType
protected final boolean propsOnly
Constructor Detail |
---|
public DeclaringTypePredicate(String nodeType, boolean propsOnly, int minDepth, int maxDepth)
nodeType
- the nodetype name to checkpropsOnly
- if true
only properties are checkedminDepth
- the minimal depthmaxDepth
- the maximal depthpublic DeclaringTypePredicate(String nodeType, boolean propsOnly)
nodeType
- the nodetype name to checkpropsOnly
- if true
only properties are checkedMethod Detail |
---|
protected boolean matches(Item item) throws RepositoryException
propsOnly
flag is true
it returns false
.
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 |