Enum SeverityLevel

java.lang.Object
java.lang.Enum<SeverityLevel>
com.itextpdf.pdfoptimizer.report.message.SeverityLevel
All Implemented Interfaces:
Serializable, Comparable<SeverityLevel>, java.lang.constant.Constable

public enum SeverityLevel extends Enum<SeverityLevel>
The enum is used to distinguish instances of ReportMessage according to their severity level.
  • Enum Constant Details

    • INFO

      public static final SeverityLevel INFO
      Minimal severity level which marks messages and events with info level. It is designed to notify a user about expected behaviour.
    • WARNING

      public static final SeverityLevel WARNING
      Medium severity level which marks messages and events with warning level. It is designed to notify a user about non-critical issues.
    • ERROR

      public static final SeverityLevel ERROR
      Maximum severity level which marks messages and events with error level. It is designed to notify a user about critical issues.
  • Method Details

    • values

      public static SeverityLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SeverityLevel valueOf (String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isAccepted

      public boolean isAccepted (SeverityLevel minimalLevel)
      Checks if current severity level is not less then provided minimal severity level.
      Parameters:
      minimalLevel - is a minimal level of severity
      Returns:
      true if this severity level is not less then provided minimal severity level and false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SeverityLevel>