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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.slf4j.Logger(package private) static Templates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanencountered(OpenDoPEIntegrity odIntegrityInstance, String elementName, String id) static voidvoidprocess(WordprocessingMLPackage wordMLPackage) private voidprocess(JaxbXmlPart part)
-
Field Details
-
log
private static org.slf4j.Logger log -
commentRangeStart
-
commentRangeEnd
-
commentReference
-
footnoteReference
-
endnoteReference
-
xslt
-
-
Constructor Details
-
OpenDoPEIntegrity
public OpenDoPEIntegrity()
-
-
Method Details
-
log
-
process
- Throws:
Docx4JException
-
process
- Throws:
Docx4JException
-
encountered
public static boolean encountered(OpenDoPEIntegrity odIntegrityInstance, String elementName, String id)
-