|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openfuture.bugbase.model.ErrorLevel
ErrorLevel.java Created: Tue May 30 19:20:19 2000
Field Summary | |
static java.lang.String |
BUG_DISTURBING
|
static int |
BUG_LEVEL_DISTURBING
|
static int |
BUG_LEVEL_NEW_FEATURE
|
static int |
BUG_LEVEL_NICE_TO_HAVE
|
static int |
BUG_LEVEL_SEVERE
|
static java.lang.String |
BUG_NEW_FEATURE
|
static java.lang.String |
BUG_NICE_TO_HAVE
|
static java.lang.String |
BUG_SEVERE
|
Constructor Summary | |
ErrorLevel()
Creates with level "nice to have"; |
|
ErrorLevel(int level)
Creates with given level. |
|
ErrorLevel(java.lang.String level)
Creates with error level equal to level. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares to another ErrorLevel. |
static java.util.Vector |
getErrorLevels()
Returns a Vector of error level names. |
int |
getValue()
Returns the internal representation of the error level |
boolean |
is(int level)
Compares to a bug level |
protected void |
setErrorLevel(int v)
Set the value of errorLevel. |
protected void |
setErrorLevel(java.lang.String level)
Set the value of errorLevel. |
java.lang.String |
toString()
Returns the String representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String BUG_SEVERE
public static final java.lang.String BUG_DISTURBING
public static final java.lang.String BUG_NICE_TO_HAVE
public static final java.lang.String BUG_NEW_FEATURE
public static final int BUG_LEVEL_SEVERE
public static final int BUG_LEVEL_DISTURBING
public static final int BUG_LEVEL_NICE_TO_HAVE
public static final int BUG_LEVEL_NEW_FEATURE
Constructor Detail |
public ErrorLevel()
public ErrorLevel(int level)
level
- error levelpublic ErrorLevel(java.lang.String level)
level
- error level.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
protected void setErrorLevel(int v)
v
- Value to assign to errorLevel.protected void setErrorLevel(java.lang.String level)
level
- Value to assign to errorLevel.public boolean is(int level)
level
- bug levelpublic static java.util.Vector getErrorLevels()
public int getValue()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- object to compared with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |