Class SteppingNavigator


  • public abstract class SteppingNavigator
    extends java.lang.Object
    The SteppingNavigator is a utility class containing methods to assist with navigating a tree whose nodes implement the SteppingNode interface
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <N extends SteppingNode<N>>
      N
      getFollowingNode​(N start, N anchor)
      Get the next following node after a given node
      • Methods inherited from class java.lang.Object

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

      • SteppingNavigator

        public SteppingNavigator()
    • Method Detail

      • getFollowingNode

        static <N extends SteppingNode<N>> N getFollowingNode​(N start,
                                                              N anchor)
        Get the next following node after a given node
        Parameters:
        start - the starting node
        anchor - the node whose descendants are being scanned; the scan terminates when the anchor node is reached
        Returns:
        the next node in document order after the starting node, excluding attributes and namespaces; or null if no such node is found