Enum MetadataValidationErrorCode
- java.lang.Object
-
- java.lang.Enum<MetadataValidationErrorCode>
-
- fr.gouv.vitam.metadata.core.validation.MetadataValidationErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MetadataValidationErrorCode>
public enum MetadataValidationErrorCode extends java.lang.Enum<MetadataValidationErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARCHIVE_UNIT_PROFILE_SCHEMA_INACTIVE
Archive unit profile inactiveARCHIVE_UNIT_PROFILE_SCHEMA_VALIDATION_FAILURE
Archive unit profile validation KOEMPTY_ARCHIVE_UNIT_PROFILE_SCHEMA
Archive unit profile schema is emptyINVALID_START_END_DATE
Unit endDate is before startDateINVALID_UNIT_DATE_FORMAT
Unit start/end date format is invalidONTOLOGY_VALIDATION_FAILURE
Archive unit profile validation KORULE_UPDATE_HOLD_END_DATE_BEFORE_START_DATE
HoldRule HoldEndDate is before StartDate (unit rule update only)RULE_UPDATE_UNEXPECTED_HOLD_END_DATE
HoldEndDate is only allowed when HoldRule has undefined (null) duration (unit rule update only)SCHEMA_VALIDATION_FAILURE
Internal / built-in validation failedUNKNOWN_ARCHIVE_UNIT_PROFILE
No such archive unit profile schema
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetadataValidationErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MetadataValidationErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCHEMA_VALIDATION_FAILURE
public static final MetadataValidationErrorCode SCHEMA_VALIDATION_FAILURE
Internal / built-in validation failed
-
EMPTY_ARCHIVE_UNIT_PROFILE_SCHEMA
public static final MetadataValidationErrorCode EMPTY_ARCHIVE_UNIT_PROFILE_SCHEMA
Archive unit profile schema is empty
-
UNKNOWN_ARCHIVE_UNIT_PROFILE
public static final MetadataValidationErrorCode UNKNOWN_ARCHIVE_UNIT_PROFILE
No such archive unit profile schema
-
ARCHIVE_UNIT_PROFILE_SCHEMA_VALIDATION_FAILURE
public static final MetadataValidationErrorCode ARCHIVE_UNIT_PROFILE_SCHEMA_VALIDATION_FAILURE
Archive unit profile validation KO
-
ARCHIVE_UNIT_PROFILE_SCHEMA_INACTIVE
public static final MetadataValidationErrorCode ARCHIVE_UNIT_PROFILE_SCHEMA_INACTIVE
Archive unit profile inactive
-
ONTOLOGY_VALIDATION_FAILURE
public static final MetadataValidationErrorCode ONTOLOGY_VALIDATION_FAILURE
Archive unit profile validation KO
-
INVALID_UNIT_DATE_FORMAT
public static final MetadataValidationErrorCode INVALID_UNIT_DATE_FORMAT
Unit start/end date format is invalid
-
INVALID_START_END_DATE
public static final MetadataValidationErrorCode INVALID_START_END_DATE
Unit endDate is before startDate
-
RULE_UPDATE_HOLD_END_DATE_BEFORE_START_DATE
public static final MetadataValidationErrorCode RULE_UPDATE_HOLD_END_DATE_BEFORE_START_DATE
HoldRule HoldEndDate is before StartDate (unit rule update only)
-
RULE_UPDATE_UNEXPECTED_HOLD_END_DATE
public static final MetadataValidationErrorCode RULE_UPDATE_UNEXPECTED_HOLD_END_DATE
HoldEndDate is only allowed when HoldRule has undefined (null) duration (unit rule update only)
-
-
Method Detail
-
values
public static MetadataValidationErrorCode[] 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 (MetadataValidationErrorCode c : MetadataValidationErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetadataValidationErrorCode 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
-
-