Interface ParagraphPlaceholderReplacer
public interface ParagraphPlaceholderReplacer
The ParagraphPlaceholderReplacer interface represents an object that can resolve expressions in a paragraph
and replace them with values provided by an expression resolver.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidresolveExpressionsForParagraph(DocxPart docxPart, Paragraph paragraph, Object context) Finds expressions in the given paragraph and replaces them with the values provided by the expression resolver.voidresolveExpressionsForParagraph(Paragraph paragraph, Object context, org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
resolveExpressionsForParagraph
Finds expressions in the given paragraph and replaces them with the values provided by the expression resolver.
Replace the previous
resolveExpressionsForParagraph(Paragraph, Object, WordprocessingMLPackage)- Parameters:
docxPart- the docxPart in which to replace all expressionsparagraph- the paragraph in which to replace expressionscontext- the context root
-
resolveExpressionsForParagraph
@Deprecated(since="2.3", forRemoval=true) void resolveExpressionsForParagraph(Paragraph paragraph, Object context, org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Deprecated, for removal: This API element is subject to removal in a future version.Finds expressions in the given paragraph and replaces them with the values provided by the expression resolver.- Parameters:
paragraph- the paragraph in which to replace expressionscontext- the context rootdocument- the document in which to replace all expressions
-
resolveExpressionsForParagraph(DocxPart, Paragraph, Object)