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 Details

    • BaseCommentProcessor

      public BaseCommentProcessor()
  • Method Details

    • getCurrentRunCoordinates

      public RunCoordinates getCurrentRunCoordinates()
    • setCurrentRunCoordinates

      public void setCurrentRunCoordinates(RunCoordinates currentRunCoordinates)
      Description copied from interface: ICommentProcessor
      Passes 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:
      setCurrentRunCoordinates in interface ICommentProcessor
      Parameters:
      currentRunCoordinates - coordinates of the currently processed run within the template.
    • setCurrentParagraphCoordinates

      public void setCurrentParagraphCoordinates(ParagraphCoordinates coordinates)
      Description copied from interface: ICommentProcessor
      Passes 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:
      setCurrentParagraphCoordinates in interface ICommentProcessor
      Parameters:
      coordinates - coordinates of the currently processed paragraph within the template.
    • getCurrentParagraphCoordinates

      public ParagraphCoordinates getCurrentParagraphCoordinates()
    • setCurrentCommentWrapper

      public void setCurrentCommentWrapper(CommentWrapper currentCommentWrapper)
      Description copied from interface: ICommentProcessor
      Passes 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:
      setCurrentCommentWrapper in interface ICommentProcessor
      Parameters:
      currentCommentWrapper - of the currently processed comment within the template.
    • getCurrentCommentWrapper

      public CommentWrapper getCurrentCommentWrapper()