|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.beans.Severity
public class Severity
The Severity bean models severity levels in SQLUnit.
Field Summary | |
---|---|
static int |
ALL_INT
|
static Severity |
DEBUG
|
static int |
DEBUG_INT
|
static java.lang.String |
DEBUG_STR
|
static Severity |
ERROR
|
static int |
ERROR_INT
|
static java.lang.String |
ERROR_STR
|
static Severity |
FATAL
|
static int |
FATAL_INT
|
static java.lang.String |
FATAL_STR
|
static Severity |
INFO
|
static int |
INFO_INT
|
static java.lang.String |
INFO_STR
|
protected int |
level
|
protected java.lang.String |
levelName
|
static int |
OFF_INT
|
static Severity |
WARN
|
static int |
WARN_INT
|
static java.lang.String |
WARN_STR
|
Constructor Summary | |
---|---|
protected |
Severity(int level,
java.lang.String levelName)
Create a new Severity object with the desired level id and name. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if the object passed in is equal to this object. |
boolean |
isGreaterOrEquals(Severity s)
Returns true if the specified severity is greater than or equal to this severity value. |
static Severity |
toSeverity(java.lang.String levelName)
Create a Severity object from its level name. |
static Severity |
toSeverity(java.lang.String levelName,
Severity defaultS)
Create a Severity object from its level name. |
java.lang.String |
toString()
Returns the String representation of this severity object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int level
protected java.lang.String levelName
public static final int OFF_INT
public static final int FATAL_INT
public static final int ERROR_INT
public static final int WARN_INT
public static final int INFO_INT
public static final int DEBUG_INT
public static final int ALL_INT
public static final java.lang.String FATAL_STR
public static final java.lang.String ERROR_STR
public static final java.lang.String WARN_STR
public static final java.lang.String INFO_STR
public static final java.lang.String DEBUG_STR
public static final Severity DEBUG
public static final Severity INFO
public static final Severity WARN
public static final Severity ERROR
public static final Severity FATAL
Constructor Detail |
---|
protected Severity(int level, java.lang.String levelName)
level
- the level id.levelName
- the level name.Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
obj
- the Object to compare with.
public boolean isGreaterOrEquals(Severity s)
s
- the Severity to compare with.
public java.lang.String toString()
toString
in class java.lang.Object
public static Severity toSeverity(java.lang.String levelName)
levelName
- the level name.
public static Severity toSeverity(java.lang.String levelName, Severity defaultS)
levelName
- the level name to use.defaults
- the default Severity object to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |