|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.msgcat.Severity
Enumerates values for error message severity.
This class includes a message (in addition to its ordinal value) so that the severity value itself can be internationalized.
Used for values of the _severity field in ErrorMessage
and the _status field in ResultItem
.
Field Summary | |
static java.lang.String |
code_id
|
static Severity |
ERROR
|
static Severity |
FATAL
|
static Severity |
OK
|
static Severity |
WARNING
|
Method Summary | |
static Severity |
fromInt(int i)
Translate the specified string into a Severity. |
static Severity |
fromMessage(Message msg)
Translate the specified message into a Severity. |
static Severity |
fromString(java.lang.String msgId)
Translate the specified string into a Severity. |
java.lang.String |
getMessage()
Format the Severity as a Message in the default Locale. |
java.lang.String |
getMessage(java.util.Locale l)
Format the Severity as a Message in the specified Locale. |
java.lang.String |
getMsgId()
|
int |
getOrdinal()
|
static void |
main(java.lang.String[] args)
|
protected static void |
println(java.lang.Object o)
Ubiquitous macro. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final Severity OK
public static final Severity WARNING
public static final Severity ERROR
public static final Severity FATAL
Method Detail |
public java.lang.String getMsgId()
public int getOrdinal()
public java.lang.String toString()
public java.lang.String getMessage()
public java.lang.String getMessage(java.util.Locale l)
public static Severity fromMessage(Message msg)
public static Severity fromString(java.lang.String msgId)
public static Severity fromInt(int i)
public static void main(java.lang.String[] args)
protected static void println(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |