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 Type
    Method
    Description
    void
    May be called to delete the commented paragraph or not, depending on the given boolean condition.
    void
    May be called to delete the commented paragraph or not, depending on the presence of the given data.
    void
    May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
    void
    May be called to delete the table surrounding the commented paragraph, depending on the given boolean condition.
  • Method Details

    • displayParagraphIf

      void displayParagraphIf(Boolean condition)
      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

      void displayParagraphIfPresent(@Nullable Object condition)
      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

      void displayTableRowIf(Boolean condition)
      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

      void displayTableIf(Boolean condition)
      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.