public class DeclaringTypePredicate extends DepthPredicate
Modifier and Type | Field and Description |
---|---|
protected String |
nodeType
The nodetype to check
|
protected boolean |
propsOnly
indicates if only props should be checked
|
maxDepth, minDepth
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(Item item)
Matches if the declaring nodetype of the item is equal to the one
specified in this filter.
|
evaluate
protected final String nodeType
protected final boolean propsOnly
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 checkedprotected boolean matches(Item item) throws RepositoryException
propsOnly
flag is true
it returns false
.matches
in class DepthPredicate
item
- the item to matchtrue
if the item matches; false
otherwise.RepositoryException
- if an error occurs.DepthPredicate.matches(javax.jcr.Item)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.