org.custommonkey.xmlunit
public class XpathNodeTracker extends Object implements XMLConstants
See Also: getXpathLocation Difference Difference
Constructor Summary | |
---|---|
XpathNodeTracker()
Simple constructor |
Method Summary | |
---|---|
void | indent()
Call before examining child nodes one level of indentation into DOM |
void | outdent()
Call after examining child nodes, ie before returning back one level of indentation from DOM |
void | preloadNodeList(NodeList nodeList)
Preload the items in a NodeList by visiting each in turn
Required for pieces of test XML whose node children can be visited
out of sequence by a DifferenceEngine comparison |
void | reset()
Clear state data.
|
String | toXpathString() |
void | visited(Node node)
Call when visiting a node whose xpath location needs tracking |
protected void | visitedAttribute(String visited) |
protected void | visitedNode(Node visited, String value) |
Parameters: nodeList the items to preload
Returns: the last visited node as an xpath-location String
Parameters: node the Node being visited