Enum ValidationErrorReason
- java.lang.Object
-
- java.lang.Enum<ValidationErrorReason>
-
- org.uberfire.ext.editor.commons.client.validation.ValidationErrorReason
-
- All Implemented Interfaces:
Serializable,Comparable<ValidationErrorReason>
public enum ValidationErrorReason extends Enum<ValidationErrorReason>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DUPLICATED_NAMEEMPTY_NAMEINVALID_NAMENOT_ALLOWED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationErrorReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static ValidationErrorReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY_NAME
public static final ValidationErrorReason EMPTY_NAME
-
INVALID_NAME
public static final ValidationErrorReason INVALID_NAME
-
DUPLICATED_NAME
public static final ValidationErrorReason DUPLICATED_NAME
-
NOT_ALLOWED
public static final ValidationErrorReason NOT_ALLOWED
-
-
Method Detail
-
values
public static ValidationErrorReason[] 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 (ValidationErrorReason c : ValidationErrorReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationErrorReason 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
-
-