Enum Class Message.Severity

java.lang.Object
java.lang.Enum<Message.Severity>
org.openpreservation.messages.Message.Severity
All Implemented Interfaces:
Serializable, Comparable<Message.Severity>, java.lang.constant.Constable
Enclosing interface:
Message

public static enum Message.Severity extends Enum<Message.Severity>
An enum set that defines the severity of a message.
  • Enum Constant Details

    • INFO

      public static final Message.Severity INFO
      The message is informational, equivalent to MAY
    • WARNING

      public static final Message.Severity WARNING
      The message is a warning, equivalent to SHOULD
    • ERROR

      public static final Message.Severity ERROR
      The message is an error, equivalent to MUST
    • FATAL

      public static final Message.Severity FATAL
      The message is a fatal error, usually an system issue
  • Field Details

    • label

      public final String label
      The label for the severity, lower case
  • Method Details

    • values

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

      public static Message.Severity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null