Enum ImageApiProfile.Format
- java.lang.Object
-
- java.lang.Enum<ImageApiProfile.Format>
-
- de.digitalcollections.iiif.model.image.ImageApiProfile.Format
-
- All Implemented Interfaces:
Serializable,Comparable<ImageApiProfile.Format>
- Enclosing class:
- ImageApiProfile
public static enum ImageApiProfile.Format extends Enum<ImageApiProfile.Format>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MimeTypegetMimeType()StringtoString()static ImageApiProfile.FormatvalueOf(String name)Returns the enum constant of this type with the specified name.static ImageApiProfile.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JPG
public static final ImageApiProfile.Format JPG
-
TIF
public static final ImageApiProfile.Format TIF
-
PNG
public static final ImageApiProfile.Format PNG
-
GIF
public static final ImageApiProfile.Format GIF
-
JP2
public static final ImageApiProfile.Format JP2
-
PDF
public static final ImageApiProfile.Format PDF
-
WEBP
public static final ImageApiProfile.Format WEBP
-
-
Method Detail
-
values
public static ImageApiProfile.Format[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageApiProfile.Format c : ImageApiProfile.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageApiProfile.Format 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 nameNullPointerException- if the argument is null
-
getMimeType
public MimeType getMimeType()
-
toString
public String toString()
- Overrides:
toStringin classEnum<ImageApiProfile.Format>
-
-