org.custommonkey.xmlunit

Class XpathNodeTracker.TrackingEntry

private final class XpathNodeTracker.TrackingEntry extends Object

Holds node tracking details - one instance is used for each level of indentation in a DOM Provides reference between a String-ified Node value and the xpath index of that value
Method Summary
voidappendEntryTo(StringBuffer buf)
Append the details of the current visited node to a StringBuffer
voidclearTrackedAttribute()
Clear any reference to the current visited attribute
voidtrackAttribute(String visited)
Keep a reference to the visited attribute at the current visited node
voidtrackNode(Node visited, String value)
Keep a reference to the current visited (non-attribute) node
voidtrackNodesAsWellAsValues(boolean yesNo)

Method Detail

appendEntryTo

public final void appendEntryTo(StringBuffer buf)
Append the details of the current visited node to a StringBuffer

Parameters: buf the StringBuffer to append to

clearTrackedAttribute

public final void clearTrackedAttribute()
Clear any reference to the current visited attribute

trackAttribute

public final void trackAttribute(String visited)
Keep a reference to the visited attribute at the current visited node

Parameters: value the attribute visited

trackNode

public final void trackNode(Node visited, String value)
Keep a reference to the current visited (non-attribute) node

Parameters: visited the non-attribute node visited value the String-ified value of the non-attribute node visited

trackNodesAsWellAsValues

public void trackNodesAsWellAsValues(boolean yesNo)