Class BaseCommentProcessor
- java.lang.Object
-
- org.wickedsource.docxstamper.processor.BaseCommentProcessor
-
- All Implemented Interfaces:
ICommentProcessor
- Direct Known Subclasses:
DisplayIfProcessor,ParagraphRepeatProcessor,RepeatDocPartProcessor,RepeatProcessor,ReplaceWithProcessor
public abstract class BaseCommentProcessor extends Object implements ICommentProcessor
-
-
Constructor Summary
Constructors Constructor Description BaseCommentProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentWrappergetCurrentCommentWrapper()org.docx4j.wml.RgetCurrentRun()org.docx4j.wml.PgetParagraph()voidsetCurrentCommentWrapper(CommentWrapper currentCommentWrapper)Passes the comment range wrapper that is currently being processed (i.e.voidsetCurrentRun(org.docx4j.wml.R currentRun)Passes the run that is currently being processed (i.e.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, wait
-
Methods inherited from interface org.wickedsource.docxstamper.api.commentprocessor.ICommentProcessor
commitChanges, reset
-
-
-
-
Method Detail
-
getCurrentRun
public org.docx4j.wml.R getCurrentRun()
-
setCurrentRun
public void setCurrentRun(org.docx4j.wml.R currentRun)
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:
currentRun- coordinates of the currently processed run within the template.
-
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- currently processed paragraph within the template.
-
getParagraph
public org.docx4j.wml.P getParagraph()
-
setCurrentCommentWrapper
public void setCurrentCommentWrapper(CommentWrapper currentCommentWrapper)
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.
-
getCurrentCommentWrapper
public CommentWrapper getCurrentCommentWrapper()
-
-