Class ReplaceWithProcessor

    • Method Detail

      • commitChanges

        public void commitChanges​(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
        Deprecated.
        Description copied from interface: ICommentProcessor
        This 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:
        commitChanges in interface ICommentProcessor
        Parameters:
        document - The word document that can be manipulated by using the DOCX4J api.
      • reset

        public void reset()
        Deprecated.
        Description copied from interface: ICommentProcessor
        Resets all state in the comment processor so that it can be re-used in another stamping process.
        Specified by:
        reset in interface ICommentProcessor
      • replaceWordWith

        public void replaceWordWith​(String expression)
        Deprecated.
        Description copied from interface: IReplaceWithProcessor
        May 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:
        replaceWordWith in interface IReplaceWithProcessor
        Parameters:
        expression - the expression to replace the text with