Class FragmentMatcher
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.mount.FragmentMatcher
-
public final class FragmentMatcher extends java.lang.Object
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 Modifier and Type Class Description static class
FragmentMatcher.Result
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FragmentMatcher.Result
startsWith(java.lang.String pattern, java.lang.String subject)
Check if the subject starts with the pattern.
-
-
-
Method Detail
-
startsWith
public static FragmentMatcher.Result startsWith(java.lang.String pattern, java.lang.String subject)
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.
-
-