|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MessageSeverityEnum> sk.uniba.euromath.gene.messages.MessageSeverityEnum
public enum MessageSeverityEnum
Message severity constants.
Enum Constant Summary | |
---|---|
ERROR
Error message, export result may not be correct. |
|
FATAL
Fatal error message, we should bail out as fast as possible. |
|
INFO
An information message. |
|
WARNING
Warning message. |
Method Summary | |
---|---|
abstract int |
getEclipseSeverity()
Returns severity as an Eclipse constant (one of IStatus
constants). |
abstract boolean |
isError()
Checks if this severity contants denotes an error. |
static MessageSeverityEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessageSeverityEnum |
valueOfDomError(short severity)
Returns appropriate enum constant |
static MessageSeverityEnum |
valueOfEclipseSeverity(int severity)
Returns appropriate enum constant |
static MessageSeverityEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MessageSeverityEnum INFO
public static final MessageSeverityEnum WARNING
public static final MessageSeverityEnum ERROR
public static final MessageSeverityEnum FATAL
Method Detail |
---|
public static final MessageSeverityEnum[] values()
for(MessageSeverityEnum c : MessageSeverityEnum.values()) System.out.println(c);
public static MessageSeverityEnum valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic abstract int getEclipseSeverity()
IStatus
constants).
public abstract boolean isError()
true
if this contants is an error.public static MessageSeverityEnum valueOfDomError(short severity)
severity
-
null
if invalid severity was
passed in.public static MessageSeverityEnum valueOfEclipseSeverity(int severity)
severity
- the eclipse severity, one of IStatus
constants.
null
if invalid severity was
passed in.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |