Class TraversalUtilVisitor<T>

java.lang.Object
org.docx4j.utils.TraversalUtilVisitor<T>
Direct Known Subclasses:
Docx4J.FindContentControlsVisitor, FieldsCombiner.CombineVisitor, PageNumberInformationCollector.FieldVisitor, VariablePrepare.TraversalUtilParagraphVisitor

public abstract class TraversalUtilVisitor<T> extends Object
Extend this class to specify what should be done when a particular object (eg P or Table) is visited during the traversal.
Author:
alberto
  • Constructor Details

    • TraversalUtilVisitor

      public TraversalUtilVisitor()
  • Method Details

    • apply

      public void apply(T element, Object parent, List<Object> siblings)
      Parameters:
      element -
      parent - (logical?)parent in the of the element
      siblings - List of the element (this includes the element itself). This list can't be changed while the visitor is running(!)
    • apply

      public void apply(T element)
      Apply method if there is no need to access the surrounding elements
      Parameters:
      element -