Class CommentProcessor
java.lang.Object
pro.verron.officestamper.api.CommentProcessor
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 Summary
ConstructorsModifierConstructorDescriptionprotectedCommentProcessor(ProcessorContext context) Constructs a new instance of CommentProcessor to process comments and placeholders within a paragraph. -
Method Summary
Modifier and TypeMethodDescriptionprotected Commentcomment()Returns the comment associated with this processor.protected ProcessorContextcontext()Returns the processing context for thisCommentProcessorinstance.protected ParagraphReturns the paragraph associated with this processor.
-
Constructor Details
-
CommentProcessor
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
Returns the processing context for thisCommentProcessorinstance.- Returns:
- the
ProcessorContextassociated with thisCommentProcessor.
-
paragraph
Returns the paragraph associated with this processor.- Returns:
- the paragraph.
-
comment
Returns the comment associated with this processor.- Returns:
- the comment.
-