Enum RuleUpdateErrorCode
- java.lang.Object
-
- java.lang.Enum<RuleUpdateErrorCode>
-
- fr.gouv.vitam.common.database.server.RuleUpdateErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RuleUpdateErrorCode>
public enum RuleUpdateErrorCode extends java.lang.Enum<RuleUpdateErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HOLD_END_DATE_BEFORE_START_DATE
HOLD_END_DATE_ONLY_ALLOWED_FOR_HOLD_RULE_WITH_UNDEFINED_DURATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuleUpdateErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RuleUpdateErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOLD_END_DATE_BEFORE_START_DATE
public static final RuleUpdateErrorCode HOLD_END_DATE_BEFORE_START_DATE
-
HOLD_END_DATE_ONLY_ALLOWED_FOR_HOLD_RULE_WITH_UNDEFINED_DURATION
public static final RuleUpdateErrorCode HOLD_END_DATE_ONLY_ALLOWED_FOR_HOLD_RULE_WITH_UNDEFINED_DURATION
-
-
Method Detail
-
values
public static RuleUpdateErrorCode[] 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 (RuleUpdateErrorCode c : RuleUpdateErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuleUpdateErrorCode 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
-
-