Class FragmentMatcher
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.mount.FragmentMatcher
-
public final class FragmentMatcher extends java.lang.ObjectThis 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 classFragmentMatcher.Result
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FragmentMatcher.ResultstartsWith(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_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.
-
-