protected static enum RFC5424SyslogParser.Severity extends Enum<RFC5424SyslogParser.Severity>
Enum Constant and Description |
---|
ALERT |
CRITICAL |
DEBUG |
EMERGENCY |
ERROR |
INFO |
NOTICE |
UNDEFINED |
WARN |
Modifier and Type | Method and Description |
---|---|
String |
label() |
int |
level() |
static RFC5424SyslogParser.Severity |
parseInt(int syslogSeverity) |
static RFC5424SyslogParser.Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RFC5424SyslogParser.Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RFC5424SyslogParser.Severity DEBUG
public static final RFC5424SyslogParser.Severity INFO
public static final RFC5424SyslogParser.Severity NOTICE
public static final RFC5424SyslogParser.Severity WARN
public static final RFC5424SyslogParser.Severity ERROR
public static final RFC5424SyslogParser.Severity CRITICAL
public static final RFC5424SyslogParser.Severity ALERT
public static final RFC5424SyslogParser.Severity EMERGENCY
public static final RFC5424SyslogParser.Severity UNDEFINED
public static RFC5424SyslogParser.Severity[] values()
for (RFC5424SyslogParser.Severity c : RFC5424SyslogParser.Severity.values()) System.out.println(c);
public static RFC5424SyslogParser.Severity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int level()
public String label()
public static RFC5424SyslogParser.Severity parseInt(int syslogSeverity)