public enum NotificationLevel extends java.lang.Enum<NotificationLevel>
| Enum Constant and Description |
|---|
ERROR |
INFORMATION |
WARNING |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_PREFIX |
static java.lang.String |
INFORMATION_PREFIX |
static java.lang.String |
WARNING_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
static Pair<NotificationLevel,java.lang.String> |
process(java.lang.String text)
Returns the level and the processed notification text.
|
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 INFORMATION
public static final NotificationLevel WARNING
public static final NotificationLevel ERROR
public static final java.lang.String INFORMATION_PREFIX
public static final java.lang.String WARNING_PREFIX
public static final java.lang.String ERROR_PREFIX
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 Pair<NotificationLevel,java.lang.String> process(java.lang.String text)
INFORMATION_PREFIX, WARNING_PREFIX or ERROR_PREFIX,
the prefix is removed and the corresponding level is returned.
If there is no prefix, returns the unmodified text and the INFORMATION level.