Package fr.gouv.vitam.common.dsl.schema
Enum ValidationErrorMessage.Code
- java.lang.Object
-
- java.lang.Enum<ValidationErrorMessage.Code>
-
- fr.gouv.vitam.common.dsl.schema.ValidationErrorMessage.Code
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ValidationErrorMessage.Code>
- Enclosing class:
- ValidationErrorMessage
public static enum ValidationErrorMessage.Code extends java.lang.Enum<ValidationErrorMessage.Code>
Error codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEMENT_TOO_LONG
ELEMENT_TOO_SHORT
INVALID_JSON_FIELD
INVALID_VALUE
MANDATORY
NO_VIABLE_ALTERNATIVE
WRONG_JSON_TYPE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationErrorMessage.Code
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ValidationErrorMessage.Code[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRONG_JSON_TYPE
public static final ValidationErrorMessage.Code WRONG_JSON_TYPE
-
MANDATORY
public static final ValidationErrorMessage.Code MANDATORY
-
ELEMENT_TOO_SHORT
public static final ValidationErrorMessage.Code ELEMENT_TOO_SHORT
-
ELEMENT_TOO_LONG
public static final ValidationErrorMessage.Code ELEMENT_TOO_LONG
-
INVALID_JSON_FIELD
public static final ValidationErrorMessage.Code INVALID_JSON_FIELD
-
NO_VIABLE_ALTERNATIVE
public static final ValidationErrorMessage.Code NO_VIABLE_ALTERNATIVE
-
INVALID_VALUE
public static final ValidationErrorMessage.Code INVALID_VALUE
-
-
Method Detail
-
values
public static ValidationErrorMessage.Code[] 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 (ValidationErrorMessage.Code c : ValidationErrorMessage.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationErrorMessage.Code 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
-
-