Enum RepresentationType
- All Implemented Interfaces:
Serializable
,Comparable<RepresentationType>
,java.lang.constant.Constable
The different types of representations that form the body of either the
OData request or the OData response, primarily used for content negotiation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionparameters of an actionbatch request or responsebinary-type instancecollection of complex-type instancescollection of entities (entity set)collection of primitive-type instancescollection of referencessingle complex-type instancecount of instancesdifferencessingle entityerror documentmedia entitymetadata documentsingle primitive-type instancesingle referenceservice documenttextual raw value of a primitive-type instance (except binary) -
Method Summary
Modifier and TypeMethodDescriptionstatic RepresentationType
Returns the enum constant of this type with the specified name.static RepresentationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SERVICE
service document -
METADATA
metadata document -
BATCH
batch request or response -
ERROR
error document -
ENTITY
single entity -
COLLECTION_ENTITY
collection of entities (entity set) -
PRIMITIVE
single primitive-type instance -
COLLECTION_PRIMITIVE
collection of primitive-type instances -
COMPLEX
single complex-type instance -
COLLECTION_COMPLEX
collection of complex-type instances -
DIFFERENCES
differences -
MEDIA
media entity -
BINARY
binary-type instance -
REFERENCE
single reference -
COLLECTION_REFERENCE
collection of references -
VALUE
textual raw value of a primitive-type instance (except binary) -
COUNT
count of instances -
ACTION_PARAMETERS
parameters of an action
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-