Package org.docx4j.model.datastorage
Class OpenDoPEIntegrity
java.lang.Object
org.docx4j.model.datastorage.OpenDoPEIntegrity
public class OpenDoPEIntegrity
extends java.lang.Object
Word (2007) can't open a docx if it has more than one
comment with the same ID. Similarly for footnoteReference
and endnoteReference.
Bookmarks: duplicate, missing (or half missing) bookmarks
don't seem to trouble Word, so we don't check for these.
Since docx4j 3.0, two content control integrity checks are
also done here:
1. w:tr/w:sdt must contain w:tc, and w:tc must be non-empty
2. w:tc/w:sdt must be non-empty
Note that the w:sdts can be nested, so simple parent/child
checks aren't sufficient.
- Author:
- jharrop
-
Constructor Summary
Constructors Constructor Description OpenDoPEIntegrity() -
Method Summary
Modifier and Type Method Description static booleanencountered(OpenDoPEIntegrity odIntegrityInstance, java.lang.String elementName, java.lang.String id)static voidlog(java.lang.String message)voidprocess(WordprocessingMLPackage wordMLPackage)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OpenDoPEIntegrity
public OpenDoPEIntegrity()
-
-
Method Details
-
log
public static void log(java.lang.String message) -
process
- Throws:
Docx4JException
-
encountered
public static boolean encountered(OpenDoPEIntegrity odIntegrityInstance, java.lang.String elementName, java.lang.String id)
-