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.intReturns the number of elements which where matched by thePattern.intReturns the position of the matchReturns the remaining path after the matching part.booleanbooleanisMatch()Returns true if thePatternmatched 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 ornullifisFullMatch()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 ornullifgetMatchLength()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 thePatternmatched anything or false otherwise.- Returns:
-
isFullMatch
public boolean isFullMatch()- Returns:
-