|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.common.Severity
Defines severity types used by the common controls framework
Severity classes:
Field Summary | |
private static Severity[] |
ALL
The buffer with all kinds of severities |
private java.lang.String |
code
Identifier |
static Severity |
ERROR
severity: ERROR |
static Severity |
FATAL
severity: FATAL |
static Severity |
INFORMATION
severity: INFORMATION |
private java.lang.String |
name
display value / the nice name |
static Severity |
NONE
severity: NONE |
static Severity |
QUESTION
severity: QUESTION |
private static long |
serialVersionUID
Serial Version UID |
private int |
severity
Category of the Error |
static Severity |
WARNING
severity: WARNING |
Constructor Summary | |
private |
Severity(int severity,
java.lang.String code,
java.lang.String name)
Constructor |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
Compares this type to the specified object. |
int |
hashCode()
|
boolean |
isError()
Checks if the error class is of severity ERROR or FATAL |
boolean |
isInformation()
Checks if the error class is of severity INFORMATION |
boolean |
isQuestion()
Checks if the error class is of severity QUESTION |
boolean |
isWarning()
Checks if the error class is of severity WARNING |
static Severity |
max(Severity a,
Severity b)
Return the more significant Severity of two Objects |
java.lang.String |
niceName()
Returns the nice name for this severity |
static Severity |
parse(java.lang.String strSeverity)
Creates for the argument an Object of type Severity |
int |
toInt()
Returns the Severity as an Integer Value |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final Severity NONE
public static final Severity QUESTION
public static final Severity INFORMATION
public static final Severity WARNING
public static final Severity ERROR
public static final Severity FATAL
private int severity
private java.lang.String code
private java.lang.String name
private static final Severity[] ALL
Constructor Detail |
private Severity(int severity, java.lang.String code, java.lang.String name)
severity
- Severitycode
- Identifiername
- Display valueMethod Detail |
public int toInt()
public static Severity max(Severity a, Severity b)
a
- Severity Object Ab
- Severity Object B
public boolean equals(java.lang.Object obj)
obj
- The object to compare this Severity
object
against.
true
if the internal types are equal;
false
otherwise.public int hashCode()
Object.hashCode()
public boolean isError()
public boolean isWarning()
public boolean isInformation()
public boolean isQuestion()
public java.lang.String niceName()
public static Severity parse(java.lang.String strSeverity)
strSeverity
- String to parse
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |