com.day.cq.commons.predicate
Class IsFolderPredicate

java.lang.Object
  extended by com.day.cq.commons.predicate.AbstractNodePredicate
      extended by 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.


Constructor Summary
IsFolderPredicate()
           
 
Method Summary
 boolean evaluate(Node node)
          Evaluates this predicate on the given node.
 
Methods inherited from class com.day.cq.commons.predicate.AbstractNodePredicate
evaluate
 
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
 

Constructor Detail

IsFolderPredicate

public IsFolderPredicate()
Method Detail

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.