Uses of Class
org.apache.jackrabbit.spi.commons.name.Pattern
-
Packages that use Pattern Package Description org.apache.jackrabbit.spi.commons.name -
-
Uses of Pattern in org.apache.jackrabbit.spi.commons.name
Methods in org.apache.jackrabbit.spi.commons.name that return Pattern Modifier and Type Method Description static Pattern
Pattern. all()
A pattern which matches all input.static Pattern
Pattern. name(String namespaceUri, String localName)
Constructs a pattern which matches a path elements against regular expressions.static Pattern
Pattern. name(Name name)
Construct a new pattern which matches a path element of a given namestatic Pattern
Pattern. nothing()
A pattern which matches nothing.static Pattern
Pattern. path(Path path)
Construct a new pattern which matches an exact pathstatic Pattern
Pattern. repeat(Pattern pattern)
A pattern which matchespattern
as many times as possiblestatic Pattern
Pattern. repeat(Pattern pattern, int min, int max)
A pattern which matchespattern
as many times as possible but at leastmin
times and at mostmax
times.static Pattern
Pattern. selection(Pattern pattern1, Pattern pattern2)
A pattern which matchespattern1
followed bypattern2
and returns the longer of the two matches.static Pattern
Pattern. sequence(Pattern pattern1, Pattern pattern2)
A pattern which matchespattern1
followed bypattern2
.Methods in org.apache.jackrabbit.spi.commons.name with parameters of type Pattern Modifier and Type Method Description static MatchResult
Matcher. findMatch(Pattern pattern, Path input)
Find the first match of a pattern in a path.static MatchResult
Matcher. findMatch(Pattern pattern, Path input, int pos)
Find the first match of a pattern in a path starting at a given position.static Path
Matcher. match(Pattern pattern, Path input)
Match a pattern against an input path and return the remaining path.static boolean
Matcher. matches(Pattern pattern, Path input)
Checks whether a pattern matches an input path.static Pattern
Pattern. repeat(Pattern pattern)
A pattern which matchespattern
as many times as possiblestatic Pattern
Pattern. repeat(Pattern pattern, int min, int max)
A pattern which matchespattern
as many times as possible but at leastmin
times and at mostmax
times.static Pattern
Pattern. selection(Pattern pattern1, Pattern pattern2)
A pattern which matchespattern1
followed bypattern2
and returns the longer of the two matches.static Pattern
Pattern. sequence(Pattern pattern1, Pattern pattern2)
A pattern which matchespattern1
followed bypattern2
.
-