Class DTMDefaultBaseTraversers

java.lang.Object
org.loboevolution.apache.xml.dtm.ref.DTMDefaultBase
org.loboevolution.apache.xml.dtm.ref.DTMDefaultBaseTraversers
All Implemented Interfaces:
DTM
Direct Known Subclasses:
DTMDefaultBaseIterators

public abstract class DTMDefaultBaseTraversers extends DTMDefaultBase
This class implements the traversers for DTMDefaultBase.

PLEASE NOTE that the public interface for all traversers should be in terms of DTM Node Handles... but they may use the internal node identity indices within their logic, for efficiency's sake. Be very careful to avoid confusing these when maintaining this code.

  • Constructor Details

    • DTMDefaultBaseTraversers

      public DTMDefaultBaseTraversers(DTMManager mgr, Source source, int dtmIdentity, boolean doIndexing)
      Construct a DTMDefaultBaseTraversers object from a DOM node.
      Parameters:
      mgr - The DTMManager who owns this DTM.
      source - The object that is used to specify the construction source.
      dtmIdentity - The DTM identity ID for this DTM.
      doIndexing - flag
  • Method Details

    • getAxisTraverser

      public DTMAxisTraverser getAxisTraverser(int axis)
      This returns a stateless "traverser", that can navigate over an XPath axis, though not in document order.
      Parameters:
      axis - One of Axes.ANCESTORORSELF, etc.
      Returns:
      A DTMAxisIterator, or null if the givin axis isn't supported.