Class DTMDefaultBaseTraversers.FollowingSiblingTraverser

  • Enclosing class:
    DTMDefaultBaseTraversers

    private class DTMDefaultBaseTraversers.FollowingSiblingTraverser
    extends DTMAxisTraverser
    Implements traversal of the Ancestor access, in reverse document order.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int next​(int context, int current)
      Traverse to the next node after the current node.
      int next​(int context, int current, int expandedTypeID)
      Traverse to the next node after the current node that is matched by the extended type ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FollowingSiblingTraverser

        private FollowingSiblingTraverser()
    • Method Detail

      • next

        public int next​(int context,
                        int current)
        Traverse to the next node after the current node.
        Specified by:
        next in class DTMAxisTraverser
        Parameters:
        context - The context node of this traversal. This is the point of origin for the traversal -- its "root node" or starting point.
        current - The current node of the traversal. This is the last known location in the traversal, typically the node-handle returned by the previous traversal step. For the first traversal step, context should be set equal to current. Note that in order to test whether context is in the set, you must use the first() method instead.
        Returns:
        the next node in the iteration, or DTM.NULL.
        See Also:
        DTMAxisTraverser.first(int)
      • next

        public int next​(int context,
                        int current,
                        int expandedTypeID)
        Traverse to the next node after the current node that is matched by the extended type ID.
        Specified by:
        next in class DTMAxisTraverser
        Parameters:
        context - The context node of this traversal. This is the point of origin for the traversal -- its "root node" or starting point.
        current - The current node of the traversal. This is the last known location in the traversal, typically the node-handle returned by the previous traversal step. For the first traversal step, context should be set equal to current. Note that in order to test whether context is in the set, you must use the first() method instead.
        expandedTypeID - The extended type ID that must match.
        Returns:
        the next node in the iteration, or DTM.NULL.
        See Also:
        DTMAxisTraverser.first(int,int)