Enum FormatInfo

java.lang.Object
java.lang.Enum<FormatInfo>
org.cdlib.mrt.formatter.FormatInfo
All Implemented Interfaces:
Serializable, Comparable<FormatInfo>

public enum FormatInfo extends Enum<FormatInfo>
Author:
dloy
  • Enum Constant Details

  • Field Details

    • form

      protected final String form
    • extension

      protected final String extension
    • mimeType

      protected final String mimeType
    • encoding

      protected final String encoding
  • Method Details

    • values

      public static FormatInfo[] 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 FormatInfo 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
    • getExtension

      public String getExtension()
      Extension for this format
      Returns:
    • getMimeType

      public String getMimeType()
      return MIME type of this format response
      Parameters:
      t -
      Returns:
      MIME type
    • getForm

      public String getForm()
      return form of this format
      Parameters:
      t -
      Returns:
      MIME type
    • getEncoding

      public String getEncoding()
      return encoding of this format
      Returns:
      encoding
    • valueOfExtension

      public static FormatType valueOfExtension(String t)
    • valueOfMimeType

      public static FormatType valueOfMimeType(String t)
      return MIME type of this format response
      Parameters:
      t -
      Returns:
      MIME type