|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.custommonkey.xmlunit.XpathNodeTracker
Tracks Nodes visited by the DifferenceEngine and converts that information into an Xpath-String to supply to the NodeDetail of a Difference instance
NodeDetail.getXpathLocation(),
Difference.getControlNodeDetail(),
Difference.getTestNodeDetail()| Field Summary |
| Constructor Summary | |
XpathNodeTracker()
Simple constructor |
|
| Method Summary | |
void |
clearTrackedAttribute()
Call after processing attributes of an element and turining to compare the child nodes. |
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 |
preloadChildList(java.util.List nodeList)
Preload the items in a List 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 |
preloadNodeList(org.w3c.dom.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. |
java.lang.String |
toXpathString()
|
void |
visited(org.w3c.dom.Node node)
Call when visiting a node whose xpath location needs tracking |
protected void |
visitedAttribute(java.lang.String visited)
|
protected void |
visitedNode(org.w3c.dom.Node visited,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XpathNodeTracker()
| Method Detail |
public void reset()
public void indent()
public void clearTrackedAttribute()
public void outdent()
public void visited(org.w3c.dom.Node node)
node - the Node being visited
protected void visitedNode(org.w3c.dom.Node visited,
java.lang.String value)
protected void visitedAttribute(java.lang.String visited)
public void preloadNodeList(org.w3c.dom.NodeList nodeList)
nodeList - the items to preloadpublic void preloadChildList(java.util.List nodeList)
nodeList - the items to preloadpublic java.lang.String toXpathString()
|
XMLUnit is hosted by sourceforge.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||