public enum NotificationLevel extends java.lang.Enum<NotificationLevel>
enumeration lists the severity level of a notification: INFORM, SECURITY, ALERT, FAILURE, FATAL, WARN, QUIET.Notification,
NotificationDescription| Enum Constant and Description |
|---|
ALERT
Level for alerts
|
FAILURE
Level for notification informing about a failure that happened in the sending system
|
FATAL
Level for notification informing about a fatal event that happened in the sending system
|
INFORM
Level for informing notifications
|
QUIET
Constant used to configure the sending system so that no notification is generated.
|
SECURITY
Level for notifications related to security
|
WARN
Level for warning
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the code of this notification level.
|
static NotificationLevel |
getFromCode(int code,
NotificationLevel defaultValue)
Searches the notification level object from its code.
|
java.lang.String |
getName()
Returns the name of this notification level.
|
static NotificationLevel |
parse(java.lang.String name,
NotificationLevel defaultValue)
Searches the notification level object from its name.
|
static NotificationLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NotificationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotificationLevel QUIET
public static final NotificationLevel INFORM
public static final NotificationLevel SECURITY
public static final NotificationLevel ALERT
public static final NotificationLevel WARN
public static final NotificationLevel FAILURE
public static final NotificationLevel FATAL
public static NotificationLevel[] values()
for (NotificationLevel c : NotificationLevel.values()) System.out.println(c);
public static NotificationLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static NotificationLevel parse(java.lang.String name, NotificationLevel defaultValue)
name - The name of the notification level to be returneddefaultValue - The notification level object to be returned
if there is no notification level with the specified name; Is optional and can be null.public static NotificationLevel getFromCode(int code, NotificationLevel defaultValue)
code - The code of the notification level object to be returneddefaultValue - The notification level object to be returned
if there is no notification level with the specified name; Is optional and can be null.public int getCode()
public java.lang.String getName()