Class PathMatch
java.lang.Object
uk.org.webcompere.modelassert.json.condition.tree.PathMatch
Describes how a path may be matched
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathMatch
- Parameters:
pathStart- first part of the path expressionpathRemainder- remaining elements of the path expression
-
-
Method Details
-
all
A path match that matches everywhere- Returns:
- matches everything
-
ofJsonPointer
Convert from JSON Pointer to path match- Parameters:
jsonPointer- the JSON pointer express- Returns:
- a new
PathMatch
-
matches
Find out whether this path match fits the location- Parameters:
location- the location to check- Returns:
trueif the path matches
-
toString
-