Enum MediaType
- java.lang.Object
-
- java.lang.Enum<MediaType>
-
- org.odpi.openmetadata.accessservices.subjectarea.properties.enums.MediaType
-
- All Implemented Interfaces:
Serializable,Comparable<MediaType>
public enum MediaType extends Enum<MediaType> implements Serializable
Defines the type of media.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the description for the enum.StringgetName()Return the descriptive name for the MediaType enum instanceintgetOrdinal()Return the numerical value for the enum.static MediaTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MediaType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Image
public static final MediaType Image
The media is an image.
-
Audio
public static final MediaType Audio
The media is an audio recording.
-
Document
public static final MediaType Document
The media is a text document, probably rich text.
-
Video
public static final MediaType Video
The media is a video recording.
-
Other
public static final MediaType Other
Another type of media, probably not supported.
-
-
Method Detail
-
values
public static MediaType[] 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 (MediaType c : MediaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediaType 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
-
getOrdinal
public int getOrdinal()
Return the numerical value for the enum.- Returns:
- int enum value ordinal
-
getDescription
public String getDescription()
Return the description for the enum.- Returns:
- String description
-
getName
public String getName()
Return the descriptive name for the MediaType enum instance- Returns:
- String name
-
-