Enum ContentType.ODataFormat
- java.lang.Object
-
- java.lang.Enum<ContentType.ODataFormat>
-
- org.apache.olingo.odata2.core.commons.ContentType.ODataFormat
-
- All Implemented Interfaces:
Serializable,Comparable<ContentType.ODataFormat>
- Enclosing class:
- ContentType
public static enum ContentType.ODataFormat extends Enum<ContentType.ODataFormat>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentType.ODataFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static ContentType.ODataFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATOM
public static final ContentType.ODataFormat ATOM
-
XML
public static final ContentType.ODataFormat XML
-
JSON
public static final ContentType.ODataFormat JSON
-
MIME
public static final ContentType.ODataFormat MIME
-
CUSTOM
public static final ContentType.ODataFormat CUSTOM
-
JAVASCRIPT
public static final ContentType.ODataFormat JAVASCRIPT
-
-
Method Detail
-
values
public static ContentType.ODataFormat[] 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 (ContentType.ODataFormat c : ContentType.ODataFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentType.ODataFormat 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
-
-