|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.onwbp.base.text.Severity
This enumeration class defines the severities that a user message may have.
UserMessage| Field Summary | |
static Severity |
ERROR
Specifies an error. |
static Severity |
FATAL
Specifies a "fatal" error, this is the highest severity. |
static Severity |
INFO
Specifies an "information", this is the lowest severity. |
static Severity |
WARNING
Specifies a 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)
EBX.Platform 4.5.3 [0607:0003]
Copyright Orchestra Networks 2000-2008. All rights reserved.