Class NodeTypePredicate

java.lang.Object
org.apache.jackrabbit.commons.predicate.DepthPredicate
org.apache.jackrabbit.commons.predicate.NodeTypePredicate
All Implemented Interfaces:
Predicate

public class NodeTypePredicate extends DepthPredicate
Filters on the node type of a node.
  • Constructor Details

    • NodeTypePredicate

      public NodeTypePredicate(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(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