public class ReplaceWithProcessor extends BaseCommentProcessor implements IReplaceWithProcessor
| Constructor and Description |
|---|
ReplaceWithProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
This method is called after all comments in the .docx template have been passed to the comment processor.
|
void |
replaceWordWith(String expression)
May be called to replace a single word inside a paragraph with an expression
defined in a comment.
|
void |
reset()
Resets all state in the comment processor so that it can be re-used in another stamping process.
|
getCurrentParagraphCoordinates, getCurrentRunCoordinates, setCurrentParagraphCoordinates, setCurrentRunCoordinatespublic void commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
ICommentProcessorcommitChanges in interface ICommentProcessordocument - The word document that can be manipulated by using the DOCX4J api.public void reset()
ICommentProcessorreset in interface ICommentProcessorpublic void replaceWordWith(String expression)
IReplaceWithProcessorreplaceWordWith in interface IReplaceWithProcessorexpression - the expression to replace the text withCopyright © 2017. All rights reserved.