|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.name.Matcher
public final class Matcher
Utility class for matching Patterns against Pathes.
| Method Summary | |
|---|---|
static MatchResult |
findMatch(Pattern pattern,
org.apache.jackrabbit.spi.Path input)
Find the first match of a pattern in a path. |
static MatchResult |
findMatch(Pattern pattern,
org.apache.jackrabbit.spi.Path input,
int pos)
Find the first match of a pattern in a path starting at a given position. |
static org.apache.jackrabbit.spi.Path |
match(Pattern pattern,
org.apache.jackrabbit.spi.Path input)
Match a pattern against an input path and return the remaining path. |
static boolean |
matches(Pattern pattern,
org.apache.jackrabbit.spi.Path input)
Checks whether a pattern matches an input path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.apache.jackrabbit.spi.Path match(Pattern pattern,
org.apache.jackrabbit.spi.Path input)
pattern - input -
null if the whole path
was matched.MatchResult.getRemainder()
public static boolean matches(Pattern pattern,
org.apache.jackrabbit.spi.Path input)
pattern - input -
true if pattern matches the whole input.MatchResult.isFullMatch()
public static MatchResult findMatch(Pattern pattern,
org.apache.jackrabbit.spi.Path input)
pattern - input -
MatchResult or null if the pattern does not occur in the
input.
IllegalArgumentException - if input is not normalized.
public static MatchResult findMatch(Pattern pattern,
org.apache.jackrabbit.spi.Path input,
int pos)
pattern - input - pos -
MatchResult or null if the pattern does not occur in the
input.
IllegalArgumentException - if input is not normalized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||