Class ParagraphResolverDocumentWalker
java.lang.Object
org.wickedsource.docxstamper.util.walk.DocumentWalker
org.wickedsource.docxstamper.util.walk.BaseDocumentWalker
org.wickedsource.docxstamper.processor.repeat.ParagraphResolverDocumentWalker
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 Summary
ConstructorsConstructorDescriptionParagraphResolverDocumentWalker(org.docx4j.wml.Tr rowClone, Object expressionContext, org.docx4j.openpackaging.packages.WordprocessingMLPackage document, PlaceholderReplacer replacer) Constructor for ParagraphResolverDocumentWalker. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonParagraph(org.docx4j.wml.P paragraph) This method is called for everyPelement in the document.Methods inherited from class org.wickedsource.docxstamper.util.walk.BaseDocumentWalker
onCommentRangeEnd, onCommentRangeStart, onCommentReference, onRun, onTable, onTableCell, onTableRowMethods inherited from class org.wickedsource.docxstamper.util.walk.DocumentWalker
walk
-
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 withexpressionContext- The context of the expressions to resolvedocument- The document to walk throughreplacer- The placeholder replacer to use for resolving
-
-
Method Details
-
onParagraph
protected void onParagraph(org.docx4j.wml.P paragraph) This method is called for everyPelement in the document.- Overrides:
onParagraphin classBaseDocumentWalker- Parameters:
paragraph- thePelement to process.
-