Class Matcher
java.lang.Object
org.apache.jackrabbit.spi.commons.name.Matcher
-
Method Summary
Modifier and TypeMethodDescriptionstatic MatchResultFind the first match of a pattern in a path.static MatchResultFind the first match of a pattern in a path starting at a given position.static PathMatch a pattern against an input path and return the remaining path.static booleanChecks whether a pattern matches an input path.
-
Method Details
-
match
Match a pattern against an input path and return the remaining path.- Parameters:
pattern-input-- Returns:
- The remaining path after the match or
nullif the whole path was matched. - See Also:
-
matches
Checks whether a pattern matches an input path.- Parameters:
pattern-input-- Returns:
trueifpatternmatches the wholeinput.- See Also:
-
findMatch
Find the first match of a pattern in a path.- Parameters:
pattern-input-- Returns:
- A
MatchResultor null if the pattern does not occur in the input. - Throws:
IllegalArgumentException- ifinputis not normalized.
-
findMatch
Find the first match of a pattern in a path starting at a given position.- Parameters:
pattern-input-pos-- Returns:
- A
MatchResultor null if the pattern does not occur in the input. - Throws:
IllegalArgumentException- ifinputis not normalized.
-