Package org.docx4j.model.datastorage
Class OpenDoPEIntegrity
java.lang.Object
org.docx4j.model.datastorage.OpenDoPEIntegrity
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.
It also removes w15 repeats.
- Author:
- jharrop
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanencountered(OpenDoPEIntegrity odIntegrityInstance, String elementName, String id) static voidvoidprocess(WordprocessingMLPackage wordMLPackage)
-
Constructor Details
-
OpenDoPEIntegrity
public OpenDoPEIntegrity()
-
-
Method Details
-
log
-
process
- Throws:
Docx4JException
-
encountered
public static boolean encountered(OpenDoPEIntegrity odIntegrityInstance, String elementName, String id)
-