Class PathPredicate

  • All Implemented Interfaces:
    Predicate

    public class PathPredicate
    extends java.lang.Object
    implements Predicate
    The path filter provides hierarchical filtering.
    • Field Summary

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

        FALSE, TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      PathPredicate​(java.lang.String pattern)
      Creates a new default path filter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.Object item)
      Evaluates the predicate for the given object.
      • Methods inherited from class java.lang.Object

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

      • PathPredicate

        public PathPredicate​(java.lang.String pattern)
        Creates a new default path filter
         | Pattern | Matches
         | /foo    | exactly "/foo"
         | /foo.*  | all paths starting with "foo."
         | foo.*   | all files starting with "foo."
         | /foo/*  | all direct children of /foo
         | /foo/** | all children of /foo
         
        Parameters:
        pattern - the pattern
    • Method Detail