Package org.opends.messages
Enum Class Severity
- All Implemented Interfaces:
Serializable
,Comparable<Severity>
,java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe severity used for debug messages.The severity used for error messages.The severity used for informational messages.The severity used for logging no messages.The severity used for important informational messages.The severity used for warning messages. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a set of string representing allSeveritys'
abbreviated representations.static Severity
Returns theSeverity
associated with the input strings
which can either be a severity's name or messageDescriptorForm.static Severity
Returns the enum constant of this class with the specified name.static Severity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEBUG
The severity used for debug messages. -
INFORMATION
The severity used for informational messages. -
NOTICE
The severity used for important informational messages. -
WARNING
The severity used for warning messages. -
ERROR
The severity used for error messages. -
NONE
The severity used for logging no messages.
-
-
Field Details
-
VALUES
All the enum values (defined to avoid callingSeverity.values()
which allocate an array each time.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getPropertyKeyFormSet
Returns a set of string representing allSeveritys'
abbreviated representations.- Returns:
- set of messageDescriptorForm strings
-
parseString
Returns theSeverity
associated with the input strings
which can either be a severity's name or messageDescriptorForm.- Parameters:
s
- Severity name or messageDescriptorForm- Returns:
- Severity associated with
s
-