Class CommentProcessor

java.lang.Object
pro.verron.officestamper.api.CommentProcessor

public abstract class CommentProcessor extends Object

Abstract base class for processing comments within a paragraph.

The CommentProcessor represents a mechanism to manipulate or interpret comments and associated content such as placeholders found within a paragraph structure.

Subclasses must implement specific processing logic.

  • Constructor Details

    • CommentProcessor

      protected CommentProcessor(ProcessorContext context)
      Constructs a new instance of CommentProcessor to process comments and placeholders within a paragraph.
      Parameters:
      context - the context containing the paragraph, comment, and placeholder associated with the processing of this CommentProcessor.
  • Method Details

    • context

      protected ProcessorContext context()
      Returns the processing context for this CommentProcessor instance.
      Returns:
      the ProcessorContext associated with this CommentProcessor.
    • paragraph

      protected Paragraph paragraph()
      Returns the paragraph associated with this processor.
      Returns:
      the paragraph.
    • comment

      protected Comment comment()
      Returns the comment associated with this processor.
      Returns:
      the comment.