Class NamePredicate

  • All Implemented Interfaces:
    Predicate

    public class NamePredicate
    extends DepthPredicate
    Filters items according to their names.
    • Field Summary

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

        FALSE, TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      NamePredicate​(java.lang.String name)
      Creates a new name filter with the given name.
      NamePredicate​(java.lang.String name, int minDepth, int maxDepth)
      Creates a new name filter with the given name and depths
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • NamePredicate

        public NamePredicate​(java.lang.String name,
                             int minDepth,
                             int maxDepth)
        Creates a new name filter with the given name and depths
        Parameters:
        name - the name to filter on
        minDepth - the minimal depth
        maxDepth - the maximal depth
      • NamePredicate

        public NamePredicate​(java.lang.String name)
        Creates a new name filter with the given name.
        Parameters:
        name - the name to filter on