Interface DTMAxisIterator

All Superinterfaces:
Cloneable
All Known Implementing Classes:
DTMAxisIteratorBase, DTMDefaultBaseIterators.AncestorIterator, DTMDefaultBaseIterators.AttributeIterator, DTMDefaultBaseIterators.ChildrenIterator, DTMDefaultBaseIterators.DescendantIterator, DTMDefaultBaseIterators.FollowingIterator, DTMDefaultBaseIterators.FollowingSiblingIterator, DTMDefaultBaseIterators.InternalAxisIteratorBase, DTMDefaultBaseIterators.NamespaceIterator, DTMDefaultBaseIterators.ParentIterator, DTMDefaultBaseIterators.PrecedingIterator, DTMDefaultBaseIterators.PrecedingSiblingIterator, DTMDefaultBaseIterators.RootIterator, DTMDefaultBaseIterators.SingletonIterator

public interface DTMAxisIterator extends Cloneable
This class iterates over a single XPath Axis, and returns node handles.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Specifies the end of the iteration, and is the same as DTM.NULL.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    int
    Get the next node in the iteration.
    void
    Resets the iterator to the last start node.
    void
    setStartNode(int node)
    Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
  • Field Details

    • END

      static final int END
      Specifies the end of the iteration, and is the same as DTM.NULL.
      See Also:
  • Method Details

    • next

      int next()
      Get the next node in the iteration.
      Returns:
      The next node handle in the iteration, or END.
    • reset

      void reset()
      Resets the iterator to the last start node.
    • setStartNode

      void setStartNode(int node)
      Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
      Parameters:
      node - Sets the root of the iteration.
    • isReverse

      boolean isReverse()
      Returns:
      true if this iterator has a reversed axis, else false.
    • cloneIterator

      DTMAxisIterator cloneIterator()
      Returns:
      a deep copy of this iterator. The clone should not be reset from its current position.