org.apache.jackrabbit.commons.predicate
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
...
Fields inherited from interface org.apache.jackrabbit.commons.predicate.Predicate |
TRUE |
Method Summary |
protected boolean |
matches(Item item)
Returns true . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isMandatory
protected final boolean isMandatory
IsMandatoryPredicate
public IsMandatoryPredicate()
IsMandatoryPredicate
public IsMandatoryPredicate(boolean isMandatory,
int minDepth,
int maxDepth)
IsMandatoryPredicate
public IsMandatoryPredicate(boolean isMandatory)
matches
protected boolean matches(Item item)
throws RepositoryException
- Description copied from class:
DepthPredicate
- Returns
true
. Subclasses can override to implement something
useful that is dependant of the depth.
- Overrides:
matches
in class DepthPredicate
- 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)
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.