Module pro.verron.officestamper
Package pro.verron.officestamper.preset
Interface CommentProcessorFactory.IDisplayIfProcessor
- Enclosing class:
CommentProcessorFactory
public static interface CommentProcessorFactory.IDisplayIfProcessor
Interface for processors that may be used to delete commented paragraphs or tables from the document, depending
on a given condition.
- Since:
- 1.0.0
- Version:
- ${version}
- Author:
- Joseph Verron, Tom Hombergs
-
Method Summary
Modifier and TypeMethodDescriptionvoid
displayParagraphIf
(Boolean condition) May be called to delete the commented paragraph or not, depending on the given boolean condition.void
displayParagraphIfPresent
(Object condition) May be called to delete the commented paragraph or not, depending on the presence of the given data.void
displayTableIf
(Boolean condition) May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.void
displayTableRowIf
(Boolean condition) May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
-
Method Details
-
displayParagraphIf
May be called to delete the commented paragraph or not, depending on the given boolean condition.- Parameters:
condition
- if true, the commented paragraph will remain in the document. If false, the commented paragraph will be deleted at stamping.
-
displayParagraphIfPresent
May be called to delete the commented paragraph or not, depending on the presence of the given data.- Parameters:
condition
- if non-null, the commented paragraph will remain in the document. If null, the commented paragraph will be deleted at stamping.
-
displayTableRowIf
May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.- Parameters:
condition
- if true, the table row surrounding the commented paragraph will remain in the document. If false, the table row will be deleted at stamping.
-
displayTableIf
May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.- Parameters:
condition
- if true, the table surrounding the commented paragraph will remain in the document. If false, the table will be deleted at stamping.
-