|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sap.tc.mobile.logging.Severity
public final class Severity
Severity class from SAP logging API.
Collects constants for use as severities as well as some static utility
methods. The order of the constants is, with increasing severity:
DEBUG, PATH, INFO, WARNING,
ERROR, FATAL.
| Field Summary | |
|---|---|
static int |
ALL
Severity that allows all messages to be written. |
static int |
DEBUG
Recommended severity for debug messages. |
static int |
ERROR
Recommended severity of error messages. |
static int |
FATAL
Recommended severity of fatal error messages. |
static int |
GROUP
Group severity. |
static int |
INFO
Recommended severity for informational messages. |
protected static java.lang.String |
INVALID_SEVERITY_EMSG
|
static int |
MAX
Maximum severity. |
static int |
MIN
Minimum severity. |
static int |
NONE
Severity that prohibits any messages to be written. |
protected static int |
OFFSET
Offset in between recommended severities. |
static int |
PATH
Recommended severity for path messages. |
protected static java.lang.String |
UNKNOWN_SEVERITY_EMSG
|
static java.util.List |
VALUES
List of predefined severity levels (unmodifiable). |
static int |
WARNING
Recommended severity of warning messages. |
| Constructor Summary | |
|---|---|
Severity()
|
|
| Method Summary | |
|---|---|
static void |
check(int severity)
Checks whether a severity is within the valid range. |
static int |
correct(int severity)
Corrects an invalid severity to the closest valid value. |
static int |
decodSeverity(char c)
Convert severity value to a string. |
static void |
msgCheck(int severity)
Checks whether a severity is within the valid range for messages. |
static int |
msgCorrect(int severity)
Corrects an invalid severity for a message to the closest valid value. |
static int |
parse(java.lang.String name)
Gets the severity of the symbolic constant with the specified name. |
static java.lang.String |
toString(int severity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int OFFSET
public static final int ALL
public static final int DEBUG
public static final int PATH
public static final int INFO
public static final int WARNING
public static final int ERROR
public static final int FATAL
public static final int MIN
public static final int MAX
public static final int GROUP
public static final int NONE
public static final java.util.List VALUES
protected static final java.lang.String INVALID_SEVERITY_EMSG
protected static final java.lang.String UNKNOWN_SEVERITY_EMSG
| Constructor Detail |
|---|
public Severity()
| Method Detail |
|---|
public static int decodSeverity(char c)
severity - severity value.
public static java.lang.String toString(int severity)
public static void check(int severity)
java.lang.IllegalArgumentException - Specified severity is smaller than
MIN or larger than MAX, and neither NONE
nor ALL nor GROUP.public static void msgCheck(int severity)
java.lang.IllegalArgumentException - Specified severity is smaller than
MIN or larger than MAX.public static int correct(int severity)
public static int msgCorrect(int severity)
public static int parse(java.lang.String name)
name - Name of symbolic severity constant. Case INSENSITIVE.
java.lang.IllegalArgumentException - Specified name is not a symbolic severity
constant
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||