Class SteppingNavigator


  • public abstract class SteppingNavigator
    extends Object
    The SteppingNavigator is a utility class containing methods to assist with navigating a tree whose nodes implement the SteppingNode interface
    • 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