public enum RelatedMediaType extends Enum<RelatedMediaType> implements Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description for this enum instance.
|
String |
getName()
Return the default name for this enum instance.
|
int |
getOrdinal()
Return the code for this enum instance
|
String |
toString()
Standard toString method.
|
static RelatedMediaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelatedMediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelatedMediaType IMAGE
public static final RelatedMediaType AUDIO
public static final RelatedMediaType DOCUMENT
public static final RelatedMediaType VIDEO
public static final RelatedMediaType OTHER
public static RelatedMediaType[] values()
for (RelatedMediaType c : RelatedMediaType.values()) System.out.println(c);
public static RelatedMediaType 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 getName()
public String getDescription()
public String toString()
toString in class Enum<RelatedMediaType>Copyright © 2018–2020 ODPi. All rights reserved.