Enum Class Severity

java.lang.Object
java.lang.Enum<Severity>
org.opends.messages.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>, java.lang.constant.Constable

public enum Severity extends Enum<Severity>
Defines values for message severity. Severities contain an integer value that can be used for bitwise operations as well as a short abbreviated string form of each value.
  • Enum Constant Details

    • DEBUG

      public static final Severity DEBUG
      The severity used for debug messages.
    • INFORMATION

      public static final Severity INFORMATION
      The severity used for informational messages.
    • NOTICE

      public static final Severity NOTICE
      The severity used for important informational messages.
    • WARNING

      public static final Severity WARNING
      The severity used for warning messages.
    • ERROR

      public static final Severity ERROR
      The severity used for error messages.
    • NONE

      public static final Severity NONE
      The severity used for logging no messages.
  • Field Details

    • VALUES

      public static final List<Severity> VALUES
      All the enum values (defined to avoid calling Severity.values() which allocate an array each time.
  • Method Details

    • values

      public static 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 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
    • getPropertyKeyFormSet

      public static Set<String> getPropertyKeyFormSet()
      Returns a set of string representing all Severitys' abbreviated representations.
      Returns:
      set of messageDescriptorForm strings
    • parseString

      public static Severity parseString(String s)
      Returns the Severity associated with the input string s which can either be a severity's name or messageDescriptorForm.
      Parameters:
      s - Severity name or messageDescriptorForm
      Returns:
      Severity associated with s