Class ReplaceWithProcessor
- java.lang.Object
-
- org.wickedsource.docxstamper.processor.BaseCommentProcessor
-
- org.wickedsource.docxstamper.processor.replaceExpression.ReplaceWithProcessor
-
- All Implemented Interfaces:
ICommentProcessor,IReplaceWithProcessor
@Deprecated public class ReplaceWithProcessor extends BaseCommentProcessor implements IReplaceWithProcessor
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description ReplaceWithProcessor(DocxStamperConfiguration config)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcommitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)Deprecated.This method is called after all comments in the .docx template have been passed to the comment processor.voidreplaceWordWith(String expression)Deprecated.May be called to replace a single word inside a paragraph with an expression defined in a comment.voidreset()Deprecated.Resets all state in the comment processor so that it can be re-used in another stamping process.-
Methods inherited from class org.wickedsource.docxstamper.processor.BaseCommentProcessor
getCurrentCommentWrapper, getCurrentParagraphCoordinates, getCurrentRunCoordinates, setCurrentCommentWrapper, setCurrentParagraphCoordinates, setCurrentRunCoordinates
-
-
-
-
Constructor Detail
-
ReplaceWithProcessor
public ReplaceWithProcessor(DocxStamperConfiguration config)
Deprecated.
-
-
Method Detail
-
commitChanges
public void commitChanges(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
Deprecated.Description copied from interface:ICommentProcessorThis method is called after all comments in the .docx template have been passed to the comment processor. All manipulations of the .docx document SHOULD BE done in this method. If certain manipulations are already done within in the custom methods of a comment processor, the ongoing iteration over the paragraphs in the document may be disturbed.- Specified by:
commitChangesin interfaceICommentProcessor- Parameters:
document- The word document that can be manipulated by using the DOCX4J api.
-
reset
public void reset()
Deprecated.Description copied from interface:ICommentProcessorResets all state in the comment processor so that it can be re-used in another stamping process.- Specified by:
resetin interfaceICommentProcessor
-
replaceWordWith
public void replaceWordWith(String expression)
Deprecated.Description copied from interface:IReplaceWithProcessorMay be called to replace a single word inside a paragraph with an expression defined in a comment. The comment must be applied to a single word for the replacement to take effect!- Specified by:
replaceWordWithin interfaceIReplaceWithProcessor- Parameters:
expression- the expression to replace the text with
-
-