com.waveset.msgcat
Class Severity

java.lang.Object
  extended bycom.waveset.msgcat.Severity

public class Severity
extends java.lang.Object

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

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

OK

public static final Severity OK

WARNING

public static final Severity WARNING

ERROR

public static final Severity ERROR

FATAL

public static final Severity FATAL
Method Detail

getMsgId

public java.lang.String getMsgId()

getOrdinal

public int getOrdinal()

toString

public java.lang.String toString()

getMessage

public java.lang.String getMessage()
Format the Severity as a Message in the default Locale.


getMessage

public java.lang.String getMessage(java.util.Locale l)
Format the Severity as a Message in the specified Locale.


fromMessage

public static Severity fromMessage(Message msg)
Translate the specified message into a Severity.


fromString

public static Severity fromString(java.lang.String msgId)
Translate the specified string into a Severity.


fromInt

public static Severity fromInt(int i)
Translate the specified string into a Severity.


main

public static void main(java.lang.String[] args)

println

protected static void println(java.lang.Object o)
Ubiquitous macro.