Package org.custommonkey.xmlunit
Class XpathNodeTracker.TrackingEntry
- java.lang.Object
-
- org.custommonkey.xmlunit.XpathNodeTracker.TrackingEntry
-
- Enclosing class:
- XpathNodeTracker
private final class XpathNodeTracker.TrackingEntry extends java.lang.ObjectHolds 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
-
-
Field Summary
Fields Modifier and Type Field Description private booleanatAttributeprivate booleanatChildprivate intnextIndexprivate java.util.Map<org.w3c.dom.Node,java.lang.Integer>nodeReferenceMapprivate booleantrackNodeReferences
-
Constructor Summary
Constructors Modifier Constructor Description privateTrackingEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclearTrackedAttribute()Clear any reference to the current visited attributeprivate voidreset()private voidtrackAttribute(javax.xml.namespace.QName visited)Keep a reference to the visited attribute at the current visited nodeprivate voidtrackNode(org.w3c.dom.Node visited, java.lang.String value)Keep a reference to the current visited (non-attribute) node(package private) voidtrackNodesAsWellAsValues(boolean yesNo)whether the indices of subsequently tracked nodes should be tracked.
-
-
-
Method Detail
-
trackNode
private void trackNode(org.w3c.dom.Node visited, java.lang.String value)Keep a reference to the current visited (non-attribute) node- Parameters:
visited- the non-attribute node visitedvalue- the String-ified value of the non-attribute node visited
-
trackAttribute
private void trackAttribute(javax.xml.namespace.QName visited)
Keep a reference to the visited attribute at the current visited node- Parameters:
visited- the attribute visited
-
clearTrackedAttribute
void clearTrackedAttribute()
Clear any reference to the current visited attribute
-
reset
private void reset()
-
trackNodesAsWellAsValues
void trackNodesAsWellAsValues(boolean yesNo)
whether the indices of subsequently tracked nodes should be tracked.
-
-