Class BaseCommentProcessor
java.lang.Object
org.wickedsource.docxstamper.processor.BaseCommentProcessor
- All Implemented Interfaces:
ICommentProcessor
- Direct Known Subclasses:
DisplayIfProcessor,ParagraphRepeatProcessor,RepeatDocPartProcessor,RepeatProcessor,ReplaceWithProcessor,TableResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.docx4j.wml.Rorg.docx4j.openpackaging.packages.WordprocessingMLPackageorg.docx4j.wml.PvoidsetCurrentCommentWrapper(CommentWrapper currentCommentWrapper) Passes the comment range wrapper that is currently being processed (i.e.voidsetCurrentRun(org.docx4j.wml.R run) Passes the run that is currently being processed (i.e.voidsetDocument(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Passes the processed document, in order to make all linked data (images, etc) available to processors that need it (example : repeatDocPart)voidsetParagraph(org.docx4j.wml.P paragraph) Passes the paragraph that is currently being processed (i.e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wickedsource.docxstamper.api.commentprocessor.ICommentProcessor
commitChanges, reset
-
Field Details
-
placeholderReplacer
-
-
Constructor Details
-
BaseCommentProcessor
-
-
Method Details
-
getCurrentRun
public org.docx4j.wml.R getCurrentRun() -
setCurrentRun
public void setCurrentRun(org.docx4j.wml.R run) Description copied from interface:ICommentProcessorPasses the run that is currently being processed (i.e. the run that is commented in the .docx template. This method is always called BEFORE the custom methods of the custom comment processor interface are called.- Specified by:
setCurrentRunin interfaceICommentProcessor- Parameters:
run- coordinates of the currently processed run within the template.
-
getParagraph
public org.docx4j.wml.P getParagraph() -
setParagraph
public void setParagraph(org.docx4j.wml.P paragraph) Description copied from interface:ICommentProcessorPasses the paragraph that is currently being processed (i.e. the paragraph that is commented in the .docx template. This method is always called BEFORE the custom methods of the custom comment processor interface are called.- Specified by:
setParagraphin interfaceICommentProcessor- Parameters:
paragraph- coordinates of the currently processed paragraph within the template.
-
getCurrentCommentWrapper
-
setCurrentCommentWrapper
Description copied from interface:ICommentProcessorPasses the comment range wrapper that is currently being processed (i.e. the start and end of comment that in the .docx template. This method is always called BEFORE the custom methods of the custom comment processor interface are called.- Specified by:
setCurrentCommentWrapperin interfaceICommentProcessor- Parameters:
currentCommentWrapper- of the currently processed comment within the template.
-
getDocument
public org.docx4j.openpackaging.packages.WordprocessingMLPackage getDocument() -
setDocument
public void setDocument(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Description copied from interface:ICommentProcessorPasses the processed document, in order to make all linked data (images, etc) available to processors that need it (example : repeatDocPart)- Specified by:
setDocumentin interfaceICommentProcessor- Parameters:
document- DocX template being processed.
-