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.ResultstartsWith(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_MATCHif the subject starts with the pattern,FragmentMatcher.Result.PARTIAL_MATCHif the subject is shorter than the pattern, but matches it so far andFragmentMatcher.Result.MISMATCHif it doesn't start with the pattern.
-