|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Severity>
org.opends.messages.Severity
@PublicAPI(stability=UNCOMMITTED,
mayInstantiate=false,
mayExtend=false,
mayInvoke=true)
public enum SeverityDefines 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 | |
|---|---|
DEBUG
The severity that will be used for debug messages. |
|
FATAL_ERROR
The severity that will be used for fatal error messages. |
|
INFORMATION
The severity that will be used for informational messages. |
|
MILD_ERROR
The severity that will be used for mild error messages. |
|
MILD_WARNING
The severity that will be used for mild warning messages. |
|
NOTICE
The severity that will be used for important informational messages. |
|
SEVERE_ERROR
The severity that will be used for severe error messages. |
|
SEVERE_WARNING
The severity that will be used for severe warning messages. |
|
| Method Summary | |
|---|---|
int |
getMask()
Returns the mask associated with this Severity. |
static java.util.Set<java.lang.String> |
getPropertyKeyFormSet()
Returns a set of string representing all Severitys'
abbreviated representations. |
java.lang.String |
messageDesciptorName()
Gets the abbreviated form of this Severity. |
static Severity |
parseMask(int mask)
Obtains the Severity associated with a given mask
value. |
static Severity |
parseMessageId(int msgId)
Obtains the Severity associated with the the input
message ID msgId. |
static Severity |
parseString(java.lang.String s)
Returns the Severity associated with the input
string s which can either be a severity's name
or messageDescriptorForm. |
java.lang.String |
propertyKeyFormName()
Gets the name of this severity as it must appear in the property key name in a messages file. |
static Severity |
valueOf(java.lang.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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Severity INFORMATION
public static final Severity MILD_WARNING
public static final Severity SEVERE_WARNING
public static final Severity MILD_ERROR
public static final Severity SEVERE_ERROR
public static final Severity FATAL_ERROR
public static final Severity DEBUG
public static final Severity NOTICE
| Method Detail |
|---|
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static java.util.Set<java.lang.String> getPropertyKeyFormSet()
Severitys'
abbreviated representations.
public static Severity parseMask(int mask)
Severity associated with a given mask
value.
mask - for which a Severity is obtained.
maskpublic static Severity parseString(java.lang.String s)
Severity associated with the input
string s which can either be a severity's name
or messageDescriptorForm.
s - Severity name or messageDescriptorForm
spublic static Severity parseMessageId(int msgId)
Severity associated with the the input
message ID msgId.
msgId - int message ID
public int getMask()
Severity.
public java.lang.String messageDesciptorName()
Severity.
public java.lang.String propertyKeyFormName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||