Package org.docx4j.model.bookmarks
Class BookmarksIntegrity
java.lang.Object
org.docx4j.model.bookmarks.BookmarksIntegrity
public class BookmarksIntegrity
extends java.lang.Object
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 Modifier and Type Class Description static classBookmarksIntegrity.BookmarksStatus -
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog -
Constructor Summary
Constructors Constructor Description BookmarksIntegrity() -
Method Summary
Modifier and Type Method Description BookmarksIntegrity.BookmarksStatuscheck(java.util.List<java.lang.Object> contents, boolean remediate)BookmarksIntegrity.BookmarksStatuscheck(MainDocumentPart documentPart, boolean remediate)voidsetWriter(java.io.Writer writer)To record (human readable) results
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
BookmarksIntegrity
public BookmarksIntegrity()
-
-
Method Details
-
setWriter
public void setWriter(java.io.Writer writer)To record (human readable) results- Parameters:
writer-
-
check
public BookmarksIntegrity.BookmarksStatus check(MainDocumentPart documentPart, boolean remediate) throws java.lang.Exception- Parameters:
documentPart-remediate-- Returns:
- Throws:
java.lang.Exception
-
check
public BookmarksIntegrity.BookmarksStatus check(java.util.List<java.lang.Object> contents, boolean remediate) throws java.io.IOException- Parameters:
paragraphs-remediate-- Returns:
- Throws:
java.io.IOExceptionjava.lang.Exception
-