public interface ODataSerializer
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARSET
The default character set is UTF-8.
|
Modifier and Type | Method and Description |
---|---|
SerializerResult |
complex(ServiceMetadata metadata,
EdmComplexType type,
Property property,
ComplexSerializerOptions options)
Writes complex-type instance data into an InputStream.
|
SerializerResult |
complexCollection(ServiceMetadata metadata,
EdmComplexType type,
Property property,
ComplexSerializerOptions options)
Writes data of a collection of complex-type instances into an InputStream.
|
SerializerResult |
entity(ServiceMetadata metadata,
EdmEntityType entityType,
Entity entity,
EntitySerializerOptions options)
Writes entity data into an InputStream.
|
SerializerResult |
entityCollection(ServiceMetadata metadata,
EdmEntityType entityType,
EntityCollection entitySet,
EntityCollectionSerializerOptions options)
Writes entity-collection data into an InputStream.
|
SerializerResult |
error(ClientServerError error)
Writes an ODataError into an InputStream.
|
SerializerResult |
metadataDocument(ServiceMetadata serviceMetadata)
Writes the metadata document into an InputStream.
|
SerializerResult |
primitive(EdmPrimitiveType type,
Property property,
PrimitiveSerializerOptions options)
Writes primitive-type instance data into an InputStream.
|
SerializerResult |
primitiveCollection(EdmPrimitiveType type,
Property property,
PrimitiveSerializerOptions options)
Writes data of a collection of primitive-type instances into an InputStream.
|
SerializerResult |
serviceDocument(Edm edm,
String serviceRoot)
Writes the service document into an InputStream.
|
static final String DEFAULT_CHARSET
SerializerResult serviceDocument(Edm edm, String serviceRoot) throws SerializerException
edm
- the Entity Data ModelserviceRoot
- the service-root URI of this OData serviceSerializerException
SerializerResult metadataDocument(ServiceMetadata serviceMetadata) throws SerializerException
serviceMetadata
- the metadata information for the serviceSerializerException
SerializerResult error(ClientServerError error) throws SerializerException
error
- the main errorSerializerException
SerializerResult entityCollection(ServiceMetadata metadata, EdmEntityType entityType, EntityCollection entitySet, EntityCollectionSerializerOptions options) throws SerializerException
metadata
- Metadata for the serviceentityType
- the EdmEntityType
entitySet
- the data of the entity setoptions
- options for the serializerSerializerException
SerializerResult entity(ServiceMetadata metadata, EdmEntityType entityType, Entity entity, EntitySerializerOptions options) throws SerializerException
metadata
- Metadata for the serviceentityType
- the EdmEntityType
entity
- the data of the entityoptions
- options for the serializerSerializerException
SerializerResult primitive(EdmPrimitiveType type, Property property, PrimitiveSerializerOptions options) throws SerializerException
type
- primitive typeproperty
- property valueoptions
- options for the serializerSerializerException
SerializerResult complex(ServiceMetadata metadata, EdmComplexType type, Property property, ComplexSerializerOptions options) throws SerializerException
metadata
- Metadata for the servicetype
- complex typeproperty
- property valueoptions
- options for the serializerSerializerException
SerializerResult primitiveCollection(EdmPrimitiveType type, Property property, PrimitiveSerializerOptions options) throws SerializerException
type
- primitive typeproperty
- property valueoptions
- options for the serializerSerializerException
SerializerResult complexCollection(ServiceMetadata metadata, EdmComplexType type, Property property, ComplexSerializerOptions options) throws SerializerException
metadata
- Metadata for the servicetype
- complex typeproperty
- property valueoptions
- options for the serializerSerializerException
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.