Package com.day.cq.commons.predicate
Class AbstractNodePredicate
- java.lang.Object
-
- com.day.cq.commons.predicate.AbstractNodePredicate
-
- All Implemented Interfaces:
Predicate
- Direct Known Subclasses:
AuthorizablePredicate,DialogPredicate,HierarchyNotFilePredicate,IsAuthorizableFolderPredicate,IsFolderPredicate,IsHierarchyNodePredicate,IsNoSystemNodePredicate,IsPageNodePredicate,IsTemplateNodePredicate,IsUnstructuredPredicate
public abstract class AbstractNodePredicate extends java.lang.Object implements Predicate
Predicate used to filter jcr nodes.
-
-
Constructor Summary
Constructors Constructor Description AbstractNodePredicate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanevaluate(java.lang.Object o)Use the specified parameter to perform a test that returns true or false.abstract booleanevaluate(Node node)Evaluates this predicate on the given node.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(java.lang.Object o)
Use the specified parameter to perform a test that returns true or false.- Specified by:
evaluatein interfacePredicate- Parameters:
o- the object to evaluate, should not be changed- Returns:
trueif o is a JCR Node or a Resource that can be adapted to a JCR Node and the subsequent call toevaluate(Node)returnstrue;falseotherwise.
-
evaluate
public abstract boolean evaluate(Node node) throws RepositoryException
Evaluates this predicate on the given node.- Parameters:
node- the node- Returns:
trueif this node satisfies this predicate- Throws:
RepositoryException- if an error during evaluation occurs
-
-