Package org.docx4j

Interface TraversalUtil.Callback

All Known Implementing Classes:
AbstractTraversalUtilVisitorCallback, AbstractVisitorExporterGenerator, AltChunkFinder, BookmarkMover.BookmarkMoverVisitor, ClassFinder, CommentFinder, ComplexFieldLocator, CompoundTraversalUtilVisitorCallback, ConversionSectionWrapperFactory.SdtBlockFinder, HTMLExporterVisitorGenerator, InstrTextFinder, ParagraphStylesInTableFix.StyleRenamer, RangeFinder, SdtFinder, SectPrFinder, SectPrFindFirst, SimpleFieldLocator, SingleTraversalUtilVisitorCallback, TableFinder, TableModel.TrFinder, TcFinder, TocFinder, TraversalUtil.CallbackImpl
Enclosing class:
TraversalUtil

public static interface TraversalUtil.Callback
  • Method Details

    • walkJAXBElements

      void walkJAXBElements(Object parent)
    • getChildren

      List<Object> getChildren(Object o)
    • apply

      List<Object> apply(Object o)
      Visits a node in pre order (before its children have been visited). A node is visited only if all its parents have been traversed ( shouldTraverse(Object)).

      Implementations can have side effects.

    • shouldTraverse

      boolean shouldTraverse(Object o)
      Decide whether this node's children should be traversed.
      Returns:
      whether the children of this node should be visited