Enum Class BaseMimeType

java.lang.Object
java.lang.Enum<BaseMimeType>
io.goobi.viewer.model.viewer.BaseMimeType
All Implemented Interfaces:
Serializable, Comparable<BaseMimeType>, Constable

public enum BaseMimeType extends Enum<BaseMimeType>
Enum containing supported mime types.
  • Enum Constant Details

  • Method Details

    • values

      public static BaseMimeType[] 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 BaseMimeType 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
    • getByName

      public static BaseMimeType getByName(String name)

      getByName.

      Parameters:
      name - a String object.
      Returns:
      a BaseMimeType object.
    • getName

      public String getName()

      Getter for the field name.

      Returns:
      the name
    • isImageOrPdfDownloadAllowed

      public boolean isImageOrPdfDownloadAllowed()

      isImageOrPdfDownloadAllowed.

      Returns:
      true if image or PDF download is allowed for this mime type; false otherwise
    • isMediaType

      public boolean isMediaType()
      Returns:
      true for all types directly visible (or audible) in the viewer object view.
    • isImageOrPdfDownloadAllowed

      public static boolean isImageOrPdfDownloadAllowed(String mimeTypeName)

      isImageOrPdfDownloadAllowed.

      Parameters:
      mimeTypeName - a String object.
      Returns:
      true if image or PDF download is allowed for the given mime type name; false otherwise