Class XpathNodeTracker.TrackingEntry

java.lang.Object
org.custommonkey.xmlunit.XpathNodeTracker.TrackingEntry
Enclosing class:
XpathNodeTracker

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
  • Field Details

    • atAttribute

      private boolean atAttribute
    • atChild

      private boolean atChild
    • nextIndex

      private int nextIndex
    • nodeReferenceMap

      private Map<Node,Integer> nodeReferenceMap
    • trackNodeReferences

      private boolean trackNodeReferences
  • Constructor Details

    • TrackingEntry

      private TrackingEntry()
  • Method Details

    • trackNode

      private 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
    • trackAttribute

      private void trackAttribute(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.