Class OpenDoPEReverter

java.lang.Object
org.docx4j.model.datastorage.OpenDoPEReverter

public class OpenDoPEReverter
extends java.lang.Object
Reverse the action of OpenDoPEHandler. Useful where a user has edited an instance docx, but you want to regenerate with fresh XML data. This won't work if RemovalHandler has been used to removed the content controls. Note that any edits made by hand within a condition or repeat will be lost, so it is recommended that after regenerating from this reverted template, you do a document compare (eg in Word) against your previous instance to pick up any edits in a condition or repeat which this process will have dropped). This class modifies the instance, so you'll need to clone or copy it first if that's a problem.
Author:
jharrop
  • Constructor Summary

    Constructors 
    Constructor Description
    OpenDoPEReverter​(WordprocessingMLPackage openDopePkg, WordprocessingMLPackage instancePkg)  
  • Method Summary

    Modifier and Type Method Description
    boolean revert()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait