|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.log.Priority
Class representing and holding constants for priority.
| Field Summary | |
static Priority |
DEBUGDeveloper orientated messages, usually used during development of product. |
static Priority |
ERRORA problem has occurred but it is not fatal. |
static Priority |
FATAL_ERRORSomething caused whole system to fail. |
static Priority |
INFOUseful information messages such as state changes, client connection, user login etc. |
private java.lang.String |
m_name |
private int |
m_priority |
static Priority |
NONEDo not log anything. |
static Priority |
WARNA problem or conflict has occurred but it may be recoverable, then again it could be the start of the system failing. |
| Constructor Summary | |
private |
Priority(java.lang.String name, int priority)Private Constructor to block instantiation outside class. |
| Method Summary | |
java.lang.String |
getName()Get name of priority. |
static Priority |
getPriorityForName(java.lang.String priority)Retrieve a Priority object for the name parameter. |
int |
getValue()Get numerical value associated with priority. |
boolean |
isGreater(Priority other)Test whether this priority is greater than other priority. |
boolean |
isLower(Priority other)Test whether this priority is lower than other priority. |
boolean |
isLowerOrEqual(Priority other)Test whether this priority is lower or equal to other priority. |
private java.lang.Object |
readResolve()Helper method that replaces deserialized object with correct singleton. |
java.lang.String |
toString()Overidden string to display Priority in human readable form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Priority DEBUG
public static final Priority INFO
public static final Priority WARN
public static final Priority ERROR
public static final Priority FATAL_ERROR
public static final Priority NONE
private final java.lang.String m_name
private final int m_priority
| Constructor Detail |
private Priority(java.lang.String name,
int priority)
name - the string name of prioritypriority - the numerical code of priority| Method Detail |
public static Priority getPriorityForName(java.lang.String priority)
priority - the priority namepublic java.lang.String toString()
public int getValue()
public java.lang.String getName()
public boolean isGreater(Priority other)
other - the other Prioritypublic boolean isLower(Priority other)
other - the other Prioritypublic boolean isLowerOrEqual(Priority other)
other - the other Priorityprivate java.lang.Object readResolve()
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||