Package org.docx4j.model.bookmarks
Class BookmarksIntegrity
java.lang.Object
org.docx4j.model.bookmarks.BookmarksIntegrity
Perform certain bookmark integrity checks (ie check for duplicates, missing starts, ends),
and optionally, write fixes in-place
- Since:
- 6.1
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(MainDocumentPart documentPart, boolean remediate) voidTo record (human readable) results
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
BookmarksIntegrity
public BookmarksIntegrity()
-
-
Method Details
-
setWriter
To record (human readable) results- Parameters:
writer-
-
check
public BookmarksIntegrity.BookmarksStatus check(MainDocumentPart documentPart, boolean remediate) throws Exception - Parameters:
documentPart-remediate-- Returns:
- Throws:
Exception
-
check
public BookmarksIntegrity.BookmarksStatus check(List<Object> contents, boolean remediate) throws IOException - Parameters:
paragraphs-remediate-- Returns:
- Throws:
IOExceptionException
-