Package org.custommonkey.xmlunit
Class XpathNodeTracker.TrackingEntry
java.lang.Object
org.custommonkey.xmlunit.XpathNodeTracker.TrackingEntry
- Enclosing class:
XpathNodeTracker
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private int
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Clear any reference to the current visited attributeprivate void
reset()
private void
trackAttribute
(QName visited) Keep a reference to the visited attribute at the current visited nodeprivate void
Keep a reference to the current visited (non-attribute) node(package private) void
trackNodesAsWellAsValues
(boolean yesNo) whether the indices of subsequently tracked nodes should be tracked.
-
Field Details
-
atAttribute
private boolean atAttribute -
atChild
private boolean atChild -
nextIndex
private int nextIndex -
nodeReferenceMap
-
trackNodeReferences
private boolean trackNodeReferences
-
-
Constructor Details
-
TrackingEntry
private TrackingEntry()
-
-
Method Details
-
trackNode
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
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.
-