@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public enum Severity extends Enum<Severity>
Enum Constant and Description |
---|
DEBUG
The severity that will be used for debug messages.
|
ERROR
The severity that will be used for warning messages.
|
INFORMATION
The severity that will be used for informational messages.
|
NOTICE
The severity that will be used for important informational messages.
|
WARNING
The severity that will be used for warning messages.
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getPropertyKeyFormSet()
Returns a set of string representing all
Severitys' abbreviated representations. |
String |
messageDesciptorName()
Gets the abbreviated form of this
Severity . |
static Severity |
parseString(String s)
Returns the
Severity associated with the input string s which can either be a
severity's name or messageDescriptorForm. |
String |
propertyKeyFormName()
Gets the name of this severity as it must appear in the property key name in a messages file.
|
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.
|
public static final Severity DEBUG
public static final Severity INFORMATION
public static final Severity NOTICE
public static final Severity WARNING
public static final Severity ERROR
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Set<String> getPropertyKeyFormSet()
Severitys'
abbreviated representations.public static Severity parseString(String s)
Severity
associated with the input string s
which can either be a
severity's name or messageDescriptorForm.s
- Severity name or messageDescriptorForms
public String messageDesciptorName()
Severity
.public String propertyKeyFormName()
Copyright 2010-2022 ForgeRock AS.