Package fr.gouv.vitam.metadata.core.validation

# Enum Class MetadataValidationErrorCode

java.lang.Object
java.lang.Enum<MetadataValidationErrorCode>
fr.gouv.vitam.metadata.core.validation.MetadataValidationErrorCode

All Implemented Interfaces:
  `Serializable`, `Comparable<MetadataValidationErrorCode>`, `Constable`

public enum MetadataValidationErrorCode extends Enum<MetadataValidationErrorCode>

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `ARCHIVE_UNIT_PROFILE_SCHEMA_INACTIVE`
  Archive unit profile inactive
  `ARCHIVE_UNIT_PROFILE_SCHEMA_VALIDATION_FAILURE`
  Archive unit profile validation KO
  `EMPTY_ARCHIVE_UNIT_PROFILE_SCHEMA`
  Archive unit profile schema is empty
  `INVALID_START_END_DATE`
  Unit endDate is before startDate
  `INVALID_UNIT_DATE_FORMAT`
  Unit start/end date format is invalid
  `ONTOLOGY_VALIDATION_FAILURE`
  Archive unit profile validation KO
  `RULE_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 failed
  `UNKNOWN_ARCHIVE_UNIT_PROFILE`
  No such archive unit profile schema

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static MetadataValidationErrorCode`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static MetadataValidationErrorCode[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### 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 Details

  - ### values

    public static MetadataValidationErrorCode[] values()
    Returns an array containing the constants of this enum class, in the order they are declared.
    Returns:
      an array containing the constants of this enum class, in the order they are declared

  - ### valueOf

    public static MetadataValidationErrorCode valueOf(String name)
    Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      `NullPointerException` - if the argument is null