Enum MetadataExportFormat
java.lang.Object
java.lang.Enum<MetadataExportFormat>
eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.MetadataExportFormat
- All Implemented Interfaces:
Serializable
,Comparable<MetadataExportFormat>
,Constable
public enum MetadataExportFormat extends Enum<MetadataExportFormat>
Formats to which our metadata can be exported. The actual mapping is either powered by
da|ra's OAI-PMH service or
data cite.
- Author:
- René Reitmann
-
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 dara
data_cite_json
data_cite_xml
mds
oai_dara
oai_dc
oai_ddi31
oai_ddi32
schema_org_json_ld
-
Field Summary
Fields Modifier and Type Field Description static Set<MetadataExportFormat>
DATACITE_FORMATS
Export formats powered by data cite.String
fileExtension
The file extension for the downloaded format (xml or json).static Set<MetadataExportFormat>
OAI_FORMATS
Export formats powered by da|ra's OAI-PMH service.String
urlFormat
The format as it can be used in URLs. -
Constructor Summary
Constructors Modifier Constructor Description private
MetadataExportFormat(String urlFormat, String fileExtension)
Construct the enum. -
Method Summary
Modifier and Type Method Description static MetadataExportFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static MetadataExportFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
oai_dc
-
dara
-
oai_ddi31
-
oai_ddi32
-
oai_dara
-
mds
-
data_cite_xml
-
data_cite_json
-
schema_org_json_ld
-
-
Field Details
-
OAI_FORMATS
Export formats powered by da|ra's OAI-PMH service. -
DATACITE_FORMATS
Export formats powered by data cite. -
urlFormat
The format as it can be used in URLs. -
fileExtension
The file extension for the downloaded format (xml or json).
-
-
Constructor Details
-
MetadataExportFormat
Construct the enum.- Parameters:
urlFormat
- The format as it can be used in URLs.fileExtension
- The file extension for the downloaded format (xml or json).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-