org.apache.jackrabbit.commons.predicate
Class IsMandatoryPredicate

java.lang.Object
  extended by org.apache.jackrabbit.commons.predicate.DepthPredicate
      extended by org.apache.jackrabbit.commons.predicate.IsMandatoryPredicate
All Implemented Interfaces:
Predicate

public class IsMandatoryPredicate
extends DepthPredicate

IsMandatoryFilter...


Field Summary
protected  boolean isMandatory
           
 
Fields inherited from class org.apache.jackrabbit.commons.predicate.DepthPredicate
maxDepth, minDepth
 
Fields inherited from interface org.apache.jackrabbit.commons.predicate.Predicate
FALSE, TRUE
 
Constructor Summary
IsMandatoryPredicate()
           
IsMandatoryPredicate(boolean isMandatory)
           
IsMandatoryPredicate(boolean isMandatory, int minDepth, int maxDepth)
           
 
Method Summary
protected  boolean matches(Item item)
          Returns 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

isMandatory

protected final boolean isMandatory
Constructor Detail

IsMandatoryPredicate

public IsMandatoryPredicate()

IsMandatoryPredicate

public IsMandatoryPredicate(boolean isMandatory,
                            int minDepth,
                            int maxDepth)

IsMandatoryPredicate

public IsMandatoryPredicate(boolean isMandatory)
Method Detail

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 © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.