Enum Notification.NotificationType
- java.lang.Object
-
- java.lang.Enum<Notification.NotificationType>
-
- org.ametys.runtime.plugins.admin.notificator.Notification.NotificationType
-
- All Implemented Interfaces:
Serializable
,Comparable<Notification.NotificationType>
- Enclosing class:
- Notification
public static enum Notification.NotificationType extends Enum<Notification.NotificationType>
The possible type of notification
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NotificationType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Notification.NotificationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Notification.NotificationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFO
public static final Notification.NotificationType INFO
INFO
-
WARN
public static final Notification.NotificationType WARN
WARN
-
ERROR
public static final Notification.NotificationType ERROR
ERROR
-
-
Constructor Detail
-
NotificationType
private NotificationType()
-
-
Method Detail
-
values
public static Notification.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 (Notification.NotificationType c : Notification.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 Notification.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
-
-