Package org.uberfire.workbench.events
Enum NotificationEvent.NotificationType
- java.lang.Object
-
- java.lang.Enum<NotificationEvent.NotificationType>
-
- org.uberfire.workbench.events.NotificationEvent.NotificationType
-
- All Implemented Interfaces:
Serializable,Comparable<NotificationEvent.NotificationType>
- Enclosing class:
- NotificationEvent
public static enum NotificationEvent.NotificationType extends Enum<NotificationEvent.NotificationType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotificationEvent.NotificationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static NotificationEvent.NotificationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final NotificationEvent.NotificationType DEFAULT
-
ERROR
public static final NotificationEvent.NotificationType ERROR
-
SUCCESS
public static final NotificationEvent.NotificationType SUCCESS
-
INFO
public static final NotificationEvent.NotificationType INFO
-
WARNING
public static final NotificationEvent.NotificationType WARNING
-
-
Method Detail
-
values
public static NotificationEvent.NotificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NotificationEvent.NotificationType c : NotificationEvent.NotificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NotificationEvent.NotificationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-