Class MatchResult
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.name.MatchResult
-
public class MatchResult extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetMatch()Returns the path which was matched by thePattern.intgetMatchLength()Returns the number of elements which where matched by thePattern.intgetMatchPos()Returns the position of the matchPathgetRemainder()Returns the remaining path after the matching part.booleanisFullMatch()booleanisMatch()Returns true if thePatternmatched anything or false otherwise.
-
-
-
Method Detail
-
getRemainder
public Path 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
public Path 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:
-
-