Package org.opends.messages
Enum Severity
- java.lang.Object
-
- java.lang.Enum<Severity>
-
- org.opends.messages.Severity
-
- All Implemented Interfaces:
Serializable
,Comparable<Severity>
@PublicAPI(stability=UNCOMMITTED, mayInvoke=true) 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 Summary
Enum Constants Enum Constant Description DEBUG
The severity used for debug messages.ERROR
The severity used for error messages.INFORMATION
The severity used for informational messages.NONE
The severity used for logging no messages.NOTICE
The severity used for important informational messages.WARNING
The severity used for warning messages.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
getPropertyKeyFormSet()
Returns a set of string representing allSeveritys'
abbreviated representations.static Severity
parseString(String s)
Returns theSeverity
associated with the input strings
which can either be a severity's name or messageDescriptorForm.static Severity
valueOf(String name)
Returns the enum constant of this type with the specified name.static Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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.
-
-
Method Detail
-
values
public static Severity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Severity c : Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Severity 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 nameNullPointerException
- if the argument is null
-
getPropertyKeyFormSet
public static Set<String> getPropertyKeyFormSet()
Returns a set of string representing allSeveritys'
abbreviated representations.- Returns:
- set of messageDescriptorForm strings
-
-