com.day.cq.commons.predicate
Class IsFolderPredicate
java.lang.Object
com.day.cq.commons.predicate.AbstractNodePredicate
com.day.cq.commons.predicate.IsFolderPredicate
- All Implemented Interfaces:
- org.apache.commons.collections.Predicate
public class IsFolderPredicate
- extends AbstractNodePredicate
- implements org.apache.commons.collections.Predicate
Predicate used to filter Folder nodes. Accepts both nt:folder and
nt:unstructured nodes.
|
Method Summary |
boolean |
evaluate(Node node)
Evaluates this predicate on the given node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.collections.Predicate |
evaluate |
IsFolderPredicate
public IsFolderPredicate()
evaluate
public boolean evaluate(Node node)
throws RepositoryException
- Evaluates this predicate on the given node.
- Specified by:
evaluate in class AbstractNodePredicate
- Parameters:
node - the node
- Returns:
true if node is an nt:folder or nt:unstructured node
- Throws:
RepositoryException - if an error during evaluation occurs
Copyright © 2009 Day Management AG. All Rights Reserved.