Class MatchResult
java.lang.Object
org.apache.jackrabbit.spi.commons.name.MatchResult
-
Method Summary
Modifier and TypeMethodDescriptiongetMatch()
Returns the path which was matched by thePattern
.int
Returns the number of elements which where matched by thePattern
.int
Returns the position of the matchReturns the remaining path after the matching part.boolean
boolean
isMatch()
Returns true if thePattern
matched anything or false otherwise.
-
Method Details
-
getRemainder
Returns the remaining path after the matching part.- Returns:
- The remaining path after the matching part such that the path constructed from
getMatch()
followed bygetRemainder()
is the original path ornull
ifisFullMatch()
istrue
.
-
getMatch
Returns the path which was matched by thePattern
.- Returns:
- The path which was matched such that the path constructed from
getMatch()
followed bygetRemainder()
is the original path ornull
ifgetMatchLength()
is0
.
-
getMatchPos
public int getMatchPos()Returns the position of the match- Returns:
-
getMatchLength
public int getMatchLength()Returns the number of elements which where matched by thePattern
.- Returns:
-
isMatch
public boolean isMatch()Returns true if thePattern
matched anything or false otherwise.- Returns:
-
isFullMatch
public boolean isFullMatch()- Returns:
-