Package com.day.cq.commons.predicate
Class HierarchyNotFilePredicate
- java.lang.Object
-
- com.day.cq.commons.predicate.AbstractNodePredicate
-
- com.day.cq.commons.predicate.HierarchyNotFilePredicate
-
- All Implemented Interfaces:
Predicate
@Service(Predicate.class) @Properties(@Property(name="predicate.name",value="hierarchyNotFile")) public class HierarchyNotFilePredicate extends AbstractNodePredicate implements Predicate
Predicate used to filter Hierarchy nodes BUT not nt:file nodes.
-
-
Constructor Summary
Constructors Constructor Description HierarchyNotFilePredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Node node)
Evaluates this predicate on the given node.-
Methods inherited from class com.day.cq.commons.predicate.AbstractNodePredicate
evaluate
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(Node node) throws RepositoryException
Evaluates this predicate on the given node.- Specified by:
evaluate
in classAbstractNodePredicate
- Parameters:
node
- the node- Returns:
true
if node is nt:hierarchyNode but not nt:file- Throws:
RepositoryException
- if an error during evaluation occurs
-
-