Package software.amazon.smithy.waiters
Class PathMatcher
- java.lang.Object
- 
- software.amazon.smithy.waiters.PathMatcher
 
- 
- 
Constructor SummaryConstructors Constructor Description PathMatcher(java.lang.String path, java.lang.String expected, PathComparator comparator)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static PathMatcherfromNode(Node node)Creates a new instance from aNode.PathComparatorgetComparator()Gets the comparison performed on the list.java.lang.StringgetExpected()Gets the expected return value of each element returned by the path.java.lang.StringgetPath()Gets the path to execute.inthashCode()NodetoNode()Converts a value to aNode.
 
- 
- 
- 
Constructor Detail- 
PathMatcherpublic PathMatcher(java.lang.String path, java.lang.String expected, PathComparator comparator)- Parameters:
- path- The path to execute.
- expected- The expected value of the path.
- comparator- Comparison performed on the list value.
 
 
- 
 - 
Method Detail- 
getPathpublic java.lang.String getPath() Gets the path to execute.- Returns:
- Returns the path to execute.
 
 - 
getExpectedpublic java.lang.String getExpected() Gets the expected return value of each element returned by the path.- Returns:
- The return value to compare each result against.
 
 - 
getComparatorpublic PathComparator getComparator() Gets the comparison performed on the list.- Returns:
- Returns the comparator.
 
 - 
fromNodepublic static PathMatcher fromNode(Node node) Creates a new instance from aNode.- Parameters:
- node- Node tom create the PathMatcher from.
- Returns:
- Returns the created PathMatcher.
- Throws:
- ExpectationNotMetException- if the given Node is invalid.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-