|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.enums.AbstractLabeledEnum
org.springframework.core.enums.AbstractGenericLabeledEnum
org.springframework.core.enums.ShortCodedLabeledEnum
org.springframework.richclient.core.Severity
public class Severity
A typesafe enum representing different levels of severity. Each enum has an associated label, which may be useful for defining resources such as messages and icons in properties files.
Field Summary | |
---|---|
static Severity |
ERROR
Error-level severity. |
static String |
ERROR_LABEL
The label associated with the error level. |
static Severity |
INFO
Info-level severity. |
static String |
INFO_LABEL
The label associated with the info level. |
static Severity |
WARNING
Warning-level severity. |
static String |
WARNING_LABEL
The label associated with the warning level. |
Fields inherited from interface org.springframework.core.enums.LabeledEnum |
---|
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER |
Constructor Summary | |
---|---|
protected |
Severity(int magnitude,
String label)
Constructor. |
Method Summary |
---|
Methods inherited from class org.springframework.core.enums.ShortCodedLabeledEnum |
---|
getCode, getShortCode |
Methods inherited from class org.springframework.core.enums.AbstractGenericLabeledEnum |
---|
getLabel |
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum |
---|
compareTo, equals, getType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String INFO_LABEL
public static final String WARNING_LABEL
public static final String ERROR_LABEL
public static final Severity INFO
public static final Severity WARNING
public static final Severity ERROR
Constructor Detail |
---|
protected Severity(int magnitude, String label)
magnitude
- how does it relate to other Severity
levels, a
higher magnitude means more severe.label
- label to associate with, may be used to access resources
like messages/icons.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |