|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.slee.facilities.Level
This class defines an enumerated type for the alarm and trace levels supported by the Alarm Facility and Trace Facility. The class is based on the Java Logging API included with J2SE 1.4.
A singleton instance of each enumerated value is guaranteed (via an implementation
of readResolve()
- refer java.io.Serializable
),
so that equality tests using ==
are always evaluated correctly. (This
equality test is only guaranteed if this class is loaded in the application's boot class
path, rather than dynamically loaded at runtime.)
The levels in descending order are:
Field Summary | |
static Level |
CONFIG
Level for configuration messages. |
static Level |
FINE
Level for basic debug messages. |
static Level |
FINER
Level for moderately detailed messages. |
static Level |
FINEST
Level for highly detailed messages. |
static Level |
INFO
Level for information messages. |
static int |
LEVEL_CONFIG
An integer representation of CONFIG . |
static int |
LEVEL_FINE
An integer representation of FINE . |
static int |
LEVEL_FINER
An integer representation of FINER . |
static int |
LEVEL_FINEST
An integer representation of FINEST . |
static int |
LEVEL_INFO
An integer representation of INFO . |
static int |
LEVEL_OFF
An integer representation of OFF . |
static int |
LEVEL_SEVERE
An integer representation of SEVERE . |
static int |
LEVEL_WARNING
An integer representation of WARNING . |
static Level |
OFF
Level for maximum filtering. |
static Level |
SEVERE
Level for messages indicating a severe failure. |
static Level |
WARNING
Level for messages indicating warning conditions. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare this level for equality with another. |
static Level |
fromInt(int level)
Get an Level object from an integer value. |
int |
hashCode()
Get a hash code value for this level. |
boolean |
isConfig()
Determine if this Level object represents the CONFIG level. |
boolean |
isFine()
Determine if this Level object represents the FINE level. |
boolean |
isFiner()
Determine if this Level object represents the FINER level. |
boolean |
isFinest()
Determine if this Level object represents the FINEST level. |
boolean |
isHigherLevel(Level other)
Determine if this Level object represents a level that is higher or more severe that some other Level object. |
boolean |
isMinor()
Determine if this Level object represents the INFO level. |
boolean |
isOff()
Determine if this Level object represents the OFF level. |
boolean |
isSevere()
Determine if this Level object represents the SEVERE level. |
boolean |
isWarning()
Determine if this Level object represents the WARNING level. |
int |
toInt()
Get an integer value representation for this Level object. |
java.lang.String |
toString()
Get the textual representation of the Level object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int LEVEL_OFF
OFF
.public static final int LEVEL_SEVERE
SEVERE
.public static final int LEVEL_WARNING
WARNING
.public static final int LEVEL_INFO
INFO
.public static final int LEVEL_CONFIG
CONFIG
.public static final int LEVEL_FINE
FINE
.public static final int LEVEL_FINER
FINER
.public static final int LEVEL_FINEST
FINEST
.public static final Level OFF
public static final Level SEVERE
public static final Level WARNING
public static final Level INFO
public static final Level CONFIG
public static final Level FINE
public static final Level FINER
public static final Level FINEST
Method Detail |
public static Level fromInt(int level) throws java.lang.IllegalArgumentException
Level
object from an integer value.level
- the level as an integer.Level
object corresponding to level
.java.lang.IllegalArgumentException
- if level
is not a valid
level value.public int toInt()
Level
object.Level
object.public boolean isOff()
This method is effectively equivalent to the conditional test:
(this == OFF)
, ie. the code:
if (level.isOff()) ...
is interchangeable with the code:
if (level == Level.OFF) ...
true
if this object represents the OFF level,
false
otherwise.public boolean isSevere()
This method is effectively equivalent to the conditional test:
(this == SEVERE)
, ie. the code:
if (level.isSevere()) ...
is interchangeable with the code:
if (level == Level.SEVERE) ...
true
if this object represents the SEVERE level,
false
otherwise.public boolean isWarning()
This method is effectively equivalent to the conditional test:
(this == WARNING)
, ie. the code:
if (level.isWarning()) ...
is interchangeable with the code:
if (level == Level.WARNING) ...
true
if this object represents the WARNING level,
false
otherwise.public boolean isMinor()
This method is effectively equivalent to the conditional test:
(this == INFO)
, ie. the code:
if (level.isMinor()) ...
is interchangeable with the code:
if (level == Level.INFO) ...
true
if this object represents the INFO level,
false
otherwise.public boolean isConfig()
This method is effectively equivalent to the conditional test:
(this == CONFIG)
, ie. the code:
if (level.isConfig()) ...
is interchangeable with the code:
if (level == Level.CONFIG) ...
true
if this object represents the CONFIG level,
false
otherwise.public boolean isFine()
This method is effectively equivalent to the conditional test:
(this == FINE)
, ie. the code:
if (level.isFine()) ...
is interchangeable with the code:
if (level == Level.FINE) ...
true
if this object represents the FINE level,
false
otherwise.public boolean isFiner()
This method is effectively equivalent to the conditional test:
(this == FINER)
, ie. the code:
if (level.isFiner()) ...
is interchangeable with the code:
if (level == Level.FINER) ...
true
if this object represents the FINER level,
false
otherwise.public boolean isFinest()
This method is effectively equivalent to the conditional test:
(this == FINEST)
, ie. the code:
if (level.isFinest()) ...
is interchangeable with the code:
if (level == Level.FINEST) ...
true
if this object represents the FINEST level,
false
otherwise.public boolean isHigherLevel(Level other) throws java.lang.NullPointerException
other
- the Level
object to compare this with.true
if the level represented by this Level
object is a higher level than the level represented by the specified
Level
object, false
otherwise.java.lang.NullPointerException
- if other
is null
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare this with.true
if obj
is an instance of this class
representing the same level as this, false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |