| Constructor and Description |
|---|
PathMatcher(java.lang.String path,
java.lang.String expected,
PathComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static PathMatcher |
fromNode(Node node)
Creates a new instance from a
Node. |
PathComparator |
getComparator()
Gets the comparison performed on the list.
|
java.lang.String |
getExpected()
Gets the expected return value of each element returned by the
path.
|
java.lang.String |
getPath()
Gets the path to execute.
|
int |
hashCode() |
Node |
toNode()
Converts a value to a
Node. |
public PathMatcher(java.lang.String path,
java.lang.String expected,
PathComparator comparator)
path - The path to execute.expected - The expected value of the path.comparator - Comparison performed on the list value.public java.lang.String getPath()
public java.lang.String getExpected()
public PathComparator getComparator()
public static PathMatcher fromNode(Node node)
Node.node - Node tom create the PathMatcher from.ExpectationNotMetException - if the given Node is invalid.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object