|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.util.monolog.wrapper.common.LevelImpl
public class LevelImpl
This class is the basic implementation of the Level interface. It proviedes also a static method 'evaluate' which permits to obtain the integer value of a level expression.
| Constructor Summary | |
|---|---|
LevelImpl(String n,
int val)
|
|
LevelImpl(String n,
String val,
LevelFactory lf)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Level o)
|
static int |
evaluate(String expr,
LevelFactory lf)
It analyzes a string expression to obtain its integer value. |
int |
getIntValue()
|
String |
getName()
|
String |
getStringValue()
It retrieves the string expression of the level. |
int |
hashCode()
It retrieves the integer value of the level. |
boolean |
isComparableWith(Level o)
|
void |
setName(String n)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LevelImpl(String n,
int val)
public LevelImpl(String n,
String val,
LevelFactory lf)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic String getStringValue()
public static int evaluate(String expr,
LevelFactory lf)
expr - is the string expression which must be evaluated.lf - is the LevelFactory which permits to obtain the referenced level.
public String toString()
toString in class Objectpublic boolean isComparableWith(Level o)
isComparableWith in interface Levelpublic int compareTo(Level o)
compareTo in interface Levelpublic int getIntValue()
getIntValue in interface Levelpublic String getName()
getName in interface Levelpublic void setName(String n)
setName in interface Level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||