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 class  BookmarksIntegrity.BookmarksStatus  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static org.slf4j.Logger log  
  • Constructor Summary

    Constructors 
    Constructor Description
    BookmarksIntegrity()  
  • Method Summary

    Modifier and Type Method Description
    BookmarksIntegrity.BookmarksStatus check​(java.util.List<java.lang.Object> contents, boolean remediate)  
    BookmarksIntegrity.BookmarksStatus check​(MainDocumentPart documentPart, boolean remediate)  
    void setWriter​(java.io.Writer writer)
    To record (human readable) results

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static org.slf4j.Logger log
  • Constructor Details

  • 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.IOException
      java.lang.Exception