Class CommentBuilder

java.lang.Object
pro.verron.asciidoc.core.CommentBuilder

public class CommentBuilder extends Object
Builder for constructing Comment instances step-by-step.
  • Constructor Details

    • CommentBuilder

      public CommentBuilder(BigInteger id)
      Constructs a CommentBuilder with the given comment identifier.
      Parameters:
      id - unique identifier for the comment
  • Method Details

    • createComment

      public Comment createComment()
      Creates a new Comment from the current builder state.
      Returns:
      a new Comment instance
    • getId

      public BigInteger getId()
      Returns the unique identifier.
      Returns:
      the comment identifier
    • setId

      public CommentBuilder setId(BigInteger id)
      Sets the unique identifier.
      Parameters:
      id - unique identifier as a BigInteger
      Returns:
      this builder for method chaining
    • setBlockStart

      public CommentBuilder setBlockStart(int blockStart)
      Sets the starting block position.
      Parameters:
      blockStart - starting block position
      Returns:
      this builder for method chaining
    • setLineStart

      public CommentBuilder setLineStart(int lineStart)
      Sets the starting line position.
      Parameters:
      lineStart - starting line position
      Returns:
      this builder for method chaining
    • setBlockEnd

      public CommentBuilder setBlockEnd(int blockEnd)
      Sets the ending block position.
      Parameters:
      blockEnd - ending block position
      Returns:
      this builder for method chaining
    • setLineEnd

      public CommentBuilder setLineEnd(int lineEnd)
      Sets the ending line position.
      Parameters:
      lineEnd - ending line position
      Returns:
      this builder for method chaining