Class PathPredicate
- java.lang.Object
-
- org.apache.jackrabbit.commons.predicate.PathPredicate
-
-
Constructor Summary
Constructors Constructor Description PathPredicate(String pattern)
Creates a new default path filter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Object item)
Evaluates the predicate for the given object.
-
-
-
Field Detail
-
regex
protected final Pattern regex
the internal regex pattern
-
-
Constructor Detail
-
PathPredicate
public PathPredicate(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
-
evaluate
public boolean evaluate(Object item)
Description copied from interface:Predicate
Evaluates the predicate for the given object.- Specified by:
evaluate
in interfacePredicate
- Parameters:
item
- some object- Returns:
- predicate result
- See Also:
Predicate.evaluate(java.lang.Object)
-
-