Package io.goobi.viewer.model.viewer
Enum Class BaseMimeType
- All Implemented Interfaces:
Serializable
,Comparable<BaseMimeType>
,Constable
Enum containing supported mime types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseMimeType
getByName.getName()
Getter for the fieldname
.boolean
isImageOrPdfDownloadAllowed.static boolean
isImageOrPdfDownloadAllowed
(String mimeTypeName) isImageOrPdfDownloadAllowed.boolean
static BaseMimeType
Returns the enum constant of this class with the specified name.static BaseMimeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMAGE
-
VIDEO
-
AUDIO
-
APPLICATION
-
SANDBOXED_HTML
-
MODEL
-
UNKNOWN
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getByName
getByName.
- Parameters:
name
- aString
object.- Returns:
- a
BaseMimeType
object.
-
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
isImageOrPdfDownloadAllowed.
- Parameters:
mimeTypeName
- aString
object.- Returns:
- true if image or PDF download is allowed for the given mime type name; false otherwise
-