Package org.apache.uima.util
Class Level
java.lang.Object
org.apache.uima.util.Level
Provides the message level constants for logging and tracing
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Level
message level "ALL"static final int
level value for level "ALL"static final Level
message level "CONFIG"static final int
level value for level "CONFIG"static final Level
static final int
level value for level "DEBUG"static final Level
static final int
level value for level "ERROR"static final Level
message level "FINE"static final int
level value for level "FINE"static final Level
message level "FINER"static final int
level value for level "FINER"static final Level
message level "FINEST"static final int
level value for level "FINEST"static final Level
message level "INFO"static final int
level value for level "INFO"static final Level
message level "OFF"static final int
level value for level "OFF"static final Level
message level "SEVERE"static final int
level value for level "SEVERE"static final Level
static final int
level value for level "TRACE"static final Level
static final int
level value for level "WARN"static final Level
message level "WARNING"static final int
level value for level "WARNING" -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
method isGreaterOrEqual() returns true if the argument level is greater or equal to the specified level.boolean
isOn()
method isOn() returns true if the message level is not OFFfinal int
Returns the integer representation of this level.final String
toString()
Returns the string representation of this priority.
-
Field Details
-
OFF_INT
public static final int OFF_INTlevel value for level "OFF"- See Also:
-
SEVERE_INT
public static final int SEVERE_INTlevel value for level "SEVERE"- See Also:
-
WARNING_INT
public static final int WARNING_INTlevel value for level "WARNING"- See Also:
-
INFO_INT
public static final int INFO_INTlevel value for level "INFO"- See Also:
-
CONFIG_INT
public static final int CONFIG_INTlevel value for level "CONFIG"- See Also:
-
FINE_INT
public static final int FINE_INTlevel value for level "FINE"- See Also:
-
FINER_INT
public static final int FINER_INTlevel value for level "FINER"- See Also:
-
FINEST_INT
public static final int FINEST_INTlevel value for level "FINEST"- See Also:
-
ALL_INT
public static final int ALL_INTlevel value for level "ALL"- See Also:
-
ERROR_INT
public static final int ERROR_INTlevel value for level "ERROR"- See Also:
-
WARN_INT
public static final int WARN_INTlevel value for level "WARN"- See Also:
-
DEBUG_INT
public static final int DEBUG_INTlevel value for level "DEBUG"- See Also:
-
TRACE_INT
public static final int TRACE_INTlevel value for level "TRACE"- See Also:
-
OFF
message level "OFF" -
SEVERE
message level "SEVERE" -
ERROR
-
WARNING
message level "WARNING" -
WARN
-
INFO
message level "INFO" -
CONFIG
message level "CONFIG" -
FINE
message level "FINE" -
DEBUG
-
FINER
message level "FINER" -
TRACE
-
FINEST
message level "FINEST" -
ALL
message level "ALL"
-
-
Constructor Details
-
Level
Instantiate a new level object.- Parameters:
level
- level valuelevelText
- level name
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
isOn
public boolean isOn()method isOn() returns true if the message level is not OFF- Returns:
- boolean true if the message level is less than OFF
-
isGreaterOrEqual
method isGreaterOrEqual() returns true if the argument level is greater or equal to the specified level.- Parameters:
r
- argument level passed to the method- Returns:
- boolean - true if argument level is greater of equal to the specified level
-
toString
Returns the string representation of this priority. -
toInteger
public final int toInteger()Returns the integer representation of this level.- Returns:
- int - level value
-