Class NodeTypePredicate

  • All Implemented Interfaces:
    Predicate

    public class NodeTypePredicate
    extends DepthPredicate
    Filters on the node type of a node.
    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.commons.predicate.Predicate

        FALSE, TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeTypePredicate​(java.lang.String nodeType, boolean respectSupertype)
      Creates a new node type filter.
      NodeTypePredicate​(java.lang.String nodeType, boolean respectSupertype, int minDepth, int maxDepth)
      Creates a new node type filter.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeTypePredicate

        public NodeTypePredicate​(java.lang.String nodeType,
                                 boolean respectSupertype,
                                 int minDepth,
                                 int maxDepth)
        Creates a new node type filter.
        Parameters:
        nodeType - the node type to filter on
        respectSupertype - indicates if supertype should be respected
        minDepth - the minimal depth
        maxDepth - the maximal depth
      • NodeTypePredicate

        public NodeTypePredicate​(java.lang.String nodeType,
                                 boolean respectSupertype)
        Creates a new node type filter.
        Parameters:
        nodeType - the node type to filter on
        respectSupertype - indicates if supertype should be respected