Class TagTreeIterator


  • public class TagTreeIterator
    extends java.lang.Object
    This class is used to traverse the tag tree.

    There is a possibility to add a handler that will be called for the elements during the traversal.

    • Constructor Detail

      • TagTreeIterator

        public TagTreeIterator​(IStructureNode tagTreePointer)
        Creates a new instance of TagTreeIterator. It will use TreeTraversalOrder.PRE_ORDER for tree traversal.
        Parameters:
        tagTreePointer - the tag tree pointer.
    • Method Detail

      • traverse

        public void traverse()
        Traverses the tag tree in the order of the document structure.

        Make sure the correct handlers are added before calling this method.