Class IsMandatoryPredicate
- java.lang.Object
-
- org.apache.jackrabbit.commons.predicate.DepthPredicate
-
- org.apache.jackrabbit.commons.predicate.IsMandatoryPredicate
-
- All Implemented Interfaces:
Predicate
public class IsMandatoryPredicate extends DepthPredicate
IsMandatoryFilter
...
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isMandatory
-
Fields inherited from class org.apache.jackrabbit.commons.predicate.DepthPredicate
maxDepth, minDepth
-
-
Constructor Summary
Constructors Constructor Description IsMandatoryPredicate()
IsMandatoryPredicate(boolean isMandatory)
IsMandatoryPredicate(boolean isMandatory, int minDepth, int maxDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
matches(Item item)
Returnstrue
.-
Methods inherited from class org.apache.jackrabbit.commons.predicate.DepthPredicate
evaluate
-
-
-
-
Method Detail
-
matches
protected boolean matches(Item item) throws RepositoryException
Description copied from class:DepthPredicate
Returnstrue
. Subclasses can override to implement something useful that is dependant of the depth.- Overrides:
matches
in classDepthPredicate
- Parameters:
item
- the item to match- Returns:
true
if the item matches;false
otherwise.- Throws:
RepositoryException
- if an error occurs.- See Also:
DepthPredicate.matches(javax.jcr.Item)
-
-