Class FragmentMatcher
java.lang.Object
org.apache.jackrabbit.oak.spi.mount.FragmentMatcher
This utility class allows to match strings against a simple pattern language.
There are two special characters:
*
- matches zero or more any characters different than slash$
- matches the end of the subject
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FragmentMatcher.Result
startsWith
(String pattern, String subject) Check if the subject starts with the pattern.
-
Method Details
-
startsWith
Check if the subject starts with the pattern. See the class docs for the pattern syntax.- Parameters:
pattern
- pattern to be matchedsubject
- subject- Returns:
FragmentMatcher.Result.FULL_MATCH
if the subject starts with the pattern,FragmentMatcher.Result.PARTIAL_MATCH
if the subject is shorter than the pattern, but matches it so far andFragmentMatcher.Result.MISMATCH
if it doesn't start with the pattern.
-