|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.base.text.Severity
This enumeration class defines the severities that a user message may have.
UserMessage
Field Summary | |
static Severity |
ERROR
|
static Severity |
FATAL
|
static Severity |
INFO
|
static Severity |
WARNING
|
Method Summary | |
String |
getLabel()
|
boolean |
isEqualOrMoreSevereThan(Severity anotherSeverity)
Returns true if this severity is more severe than the one specified or the same.
|
boolean |
isError()
|
boolean |
isFatal()
|
boolean |
isInfo()
|
boolean |
isWarning()
|
static Severity |
parseFlag(String aFlag)
Returns the severity instance corresponding to the flag specified. |
String |
toParsableString()
Returns a flag identifying the severity. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Severity FATAL
public static final Severity ERROR
public static final Severity WARNING
public static final Severity INFO
Method Detail |
public static Severity parseFlag(String aFlag) throws IllegalArgumentException
toParsableString()
.
IllegalArgumentException
- if aFlag has not the format expected or it is not recognized.public String getLabel()
public String toParsableString()
Severity
instance
by method parseFlag(String)
.
public String toString()
public boolean isFatal()
public boolean isError()
public boolean isWarning()
public boolean isInfo()
public boolean isEqualOrMoreSevereThan(Severity anotherSeverity)
true
if this severity is more severe than the one specified or the same.
The following order is guaranteed:
FATAL > ERROR > WARNING > INFO
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.