Package fr.gouv.vitam.common.utils
Enum SupportedSedaVersions
- java.lang.Object
-
- java.lang.Enum<SupportedSedaVersions>
-
- fr.gouv.vitam.common.utils.SupportedSedaVersions
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SupportedSedaVersions>
public enum SupportedSedaVersions extends java.lang.Enum<SupportedSedaVersions>
Here we declare all SEDA versions supported by Vitam with their XSD Validators to use later for Generating ATR, DIP and TRANSFER.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GENERIC_VITAM_VALIDATOR
static java.lang.String
UNIFIED_NAMESPACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNamespaceURI()
java.lang.String
getSedaValidatorXSD()
static java.util.Optional<SupportedSedaVersions>
getSupportedSedaVersionByVersion(java.lang.String sedaVersion)
java.lang.String
getVersion()
java.lang.String
getVitamValidatorXSD()
static boolean
isSedaVersionsCompatible(java.lang.String metadataSedaVersion, java.lang.String sedaVersionToExport)
static boolean
isSedaVersionValid(java.lang.String sedaVersion)
static SupportedSedaVersions
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SupportedSedaVersions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEDA_2_1
public static final SupportedSedaVersions SEDA_2_1
-
SEDA_2_2
public static final SupportedSedaVersions SEDA_2_2
-
SEDA_2_3
public static final SupportedSedaVersions SEDA_2_3
-
-
Field Detail
-
UNIFIED_NAMESPACE
public static final java.lang.String UNIFIED_NAMESPACE
- See Also:
- Constant Field Values
-
GENERIC_VITAM_VALIDATOR
public static final java.lang.String GENERIC_VITAM_VALIDATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SupportedSedaVersions[] 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 (SupportedSedaVersions c : SupportedSedaVersions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportedSedaVersions 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
-
getVersion
public java.lang.String getVersion()
-
getSedaValidatorXSD
public java.lang.String getSedaValidatorXSD()
-
getNamespaceURI
public java.lang.String getNamespaceURI()
-
getVitamValidatorXSD
public java.lang.String getVitamValidatorXSD()
-
isSedaVersionValid
public static boolean isSedaVersionValid(java.lang.String sedaVersion)
-
getSupportedSedaVersionByVersion
public static java.util.Optional<SupportedSedaVersions> getSupportedSedaVersionByVersion(java.lang.String sedaVersion)
-
isSedaVersionsCompatible
public static boolean isSedaVersionsCompatible(java.lang.String metadataSedaVersion, java.lang.String sedaVersionToExport)
-
-