Package com.day.cq.wcm.commons.status
Enum EditorResourceStatus.Variant
- java.lang.Object
-
- java.lang.Enum<EditorResourceStatus.Variant>
-
- com.day.cq.wcm.commons.status.EditorResourceStatus.Variant
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EditorResourceStatus.Variant>
- Enclosing class:
- EditorResourceStatus
public static enum EditorResourceStatus.Variant extends java.lang.Enum<EditorResourceStatus.Variant>
Defines the possible variants of statuses, in line with CoralUI.Alert variants.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EditorResourceStatus.Variant
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EditorResourceStatus.Variant[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final EditorResourceStatus.Variant SUCCESS
Indicates that an operation was successful.
-
INFO
public static final EditorResourceStatus.Variant INFO
Informs the user of non-critical information.
-
WARNING
public static final EditorResourceStatus.Variant WARNING
Notifies the user of something important.
-
ERROR
public static final EditorResourceStatus.Variant ERROR
Indicates that an error has occurred.
-
-
Method Detail
-
values
public static EditorResourceStatus.Variant[] 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 (EditorResourceStatus.Variant c : EditorResourceStatus.Variant.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditorResourceStatus.Variant valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-