Class DocxToAsciiDoc.CommentRecorder

java.lang.Object
pro.verron.asciidoc.docx.DocxToAsciiDoc.CommentRecorder
Enclosing class:
DocxToAsciiDoc

public static class DocxToAsciiDoc.CommentRecorder extends Object
Tracks comment ranges in the document and produces MacroBlock representations with start/end positions.
  • Method Details

    • open

      public void open(BigInteger id, int blockStart, int lineStart)
      Opens a comment range at the given position.
      Parameters:
      id - the unique identifier for the comment
      blockStart - the starting block position
      lineStart - the starting inline position
    • close

      public void close(BigInteger id, int blockEnd, int lineEnd)
      Closes the comment range matching the given ID.
      Parameters:
      id - the unique identifier of the comment
      blockEnd - the ending block position
      lineEnd - the ending inline position
      Throws:
      IllegalStateException - if the ID does not match the last opened comment
    • all

      public Collection<MacroBlock> all()
      Returns all recorded comments as MacroBlock instances, in document order.
      Returns:
      the comment macro blocks