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
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • MetadataExportFormat

      private MetadataExportFormat​(String urlFormat, String fileExtension)
      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

      public static MetadataExportFormat[] 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

      public static MetadataExportFormat valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null