public enum MediaType extends Enum<MediaType> implements Serializable
| Enum Constant and Description |
|---|
Audio
The media is an audio recording.
|
Document
The media is a text document, probably rich text.
|
Image
The media is an image.
|
Other
Another type of media, probably not supported.
|
Video
The media is a video recording.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description for the enum.
|
String |
getName()
Return the descriptive name for the MediaType enum instance
|
int |
getOrdinal()
Return the numerical value for the enum.
|
static MediaType |
valueOf(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.
|
public static final MediaType Image
public static final MediaType Audio
public static final MediaType Document
public static final MediaType Video
public static final MediaType Other
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getOrdinal()
public String getDescription()
public String getName()
Copyright © 2018–2020 ODPi. All rights reserved.