Class BaseCommentProcessor

    • Method Detail

      • getCurrentRun

        public org.docx4j.wml.R getCurrentRun()
      • setCurrentRun

        public void setCurrentRun​(org.docx4j.wml.R run)
        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:
        setCurrentRun in interface ICommentProcessor
        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: 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:
        setParagraph in interface ICommentProcessor
        Parameters:
        paragraph - coordinates of the currently processed paragraph within the template.
      • 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()
      • setDocument

        public void setDocument​(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
        Description copied from interface: ICommentProcessor
        Passes the processed document, in order to make all linked data (images, etc) available to processors that need it (example : repeatDocPart)
        Specified by:
        setDocument in interface ICommentProcessor
        Parameters:
        document - DocX template being processed.
      • getDocument

        public org.docx4j.openpackaging.packages.WordprocessingMLPackage getDocument()