public enum ContentType extends Enum<ContentType>
Java class for ContentType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ContentType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="none"/>
<enumeration value="binary"/>
<enumeration value="xml"/>
<enumeration value="json"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BINARY
Data is binary
|
JSON
Data is JSON
|
NONE
No data
|
XML
Data is XML
|
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
fromValue(String v) |
String |
value() |
static ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentType NONE
public static final ContentType BINARY
public static final ContentType XML
public static final ContentType JSON
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType 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 String value()
public static ContentType fromValue(String v)