Class MatchResult
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.name.MatchResult
-
public class MatchResult extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getMatch()
Returns the path which was matched by thePattern
.int
getMatchLength()
Returns the number of elements which where matched by thePattern
.int
getMatchPos()
Returns the position of the matchPath
getRemainder()
Returns the remaining path after the matching part.boolean
isFullMatch()
boolean
isMatch()
Returns true if thePattern
matched 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 ornull
ifisFullMatch()
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 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:
-
-