Class ParagraphResolverDocumentWalker


public class ParagraphResolverDocumentWalker extends BaseDocumentWalker
Walks through a document and replaces placeholders with values from the given expression context. This walker only replaces placeholders in paragraphs, not in tables.
Version:
${version}
Author:
Joseph Verron
  • Constructor Details

    • ParagraphResolverDocumentWalker

      public ParagraphResolverDocumentWalker(org.docx4j.wml.Tr rowClone, Object expressionContext, org.docx4j.openpackaging.packages.WordprocessingMLPackage document, PlaceholderReplacer replacer)

      Constructor for ParagraphResolverDocumentWalker.

      Parameters:
      rowClone - The row to start with
      expressionContext - The context of the expressions to resolve
      document - The document to walk through
      replacer - The placeholder replacer to use for resolving
  • Method Details

    • onParagraph

      protected void onParagraph(org.docx4j.wml.P paragraph)
      This method is called for every P element in the document.
      Overrides:
      onParagraph in class BaseDocumentWalker
      Parameters:
      paragraph - the P element to process.