public class ODataXmlSerializer extends Object implements ODataSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET
The default character set is UTF-8.
|
| Constructor and Description |
|---|
ODataXmlSerializer() |
| 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,
AbstractEntityCollection entitySet,
EntityCollectionSerializerOptions options)
Writes entity-collection data into an InputStream.
|
SerializerStreamResult |
entityCollectionStreamed(ServiceMetadata metadata,
EdmEntityType entityType,
AbstractEntityCollectionObject entities,
EntityCollectionSerializerOptions options)
Writes entity-collection data into an InputStream.
|
SerializerResult |
error(ODataServerError error)
Writes an ODataError into an InputStream.
|
SerializerResult |
metadataDocument(ServiceMetadata serviceMetadata)
Writes the metadata document into an InputStream.
|
SerializerResult |
primitive(ServiceMetadata metadata,
EdmPrimitiveType type,
Property property,
PrimitiveSerializerOptions options)
Writes primitive-type instance data into an InputStream.
|
SerializerResult |
primitiveCollection(ServiceMetadata metadata,
EdmPrimitiveType type,
Property property,
PrimitiveSerializerOptions options)
Writes data of a collection of primitive-type instances into an InputStream.
|
SerializerResult |
reference(ServiceMetadata metadata,
EdmEntitySet edmEntitySet,
Entity entity,
ReferenceSerializerOptions options)
Writes a single entity reference into an InputStream.
|
SerializerResult |
referenceCollection(ServiceMetadata metadata,
EdmEntitySet edmEntitySet,
AbstractEntityCollection entityCollection,
ReferenceCollectionSerializerOptions options)
Writes entity-collection references into an InputStream.
|
SerializerResult |
serviceDocument(ServiceMetadata metadata,
String serviceRoot)
Writes the service document into an InputStream.
|
public static final String DEFAULT_CHARSET
public SerializerResult serviceDocument(ServiceMetadata metadata, String serviceRoot) throws SerializerException
ODataSerializerserviceDocument in interface ODataSerializermetadata - the metadata information for the serviceserviceRoot - the service-root URI of this OData serviceSerializerExceptionpublic SerializerResult metadataDocument(ServiceMetadata serviceMetadata) throws SerializerException
ODataSerializermetadataDocument in interface ODataSerializerserviceMetadata - the metadata information for the serviceSerializerExceptionpublic SerializerResult error(ODataServerError error) throws SerializerException
ODataSerializererror in interface ODataSerializererror - the main errorSerializerExceptionpublic SerializerResult entityCollection(ServiceMetadata metadata, EdmEntityType entityType, AbstractEntityCollection entitySet, EntityCollectionSerializerOptions options) throws SerializerException
ODataSerializerentityCollection in interface ODataSerializermetadata - metadata for the serviceentityType - the EdmEntityTypeentitySet - the data of the entity setoptions - options for the serializerSerializerExceptionpublic SerializerStreamResult entityCollectionStreamed(ServiceMetadata metadata, EdmEntityType entityType, AbstractEntityCollectionObject entities, EntityCollectionSerializerOptions options) throws SerializerException
ODataSerializerentityCollectionStreamed in interface ODataSerializermetadata - metadata for the serviceentityType - the EdmEntityTypeentities - the data of the entity setoptions - options for the serializerSerializerExceptionpublic SerializerResult entity(ServiceMetadata metadata, EdmEntityType entityType, Entity entity, EntitySerializerOptions options) throws SerializerException
ODataSerializerentity in interface ODataSerializermetadata - metadata for the serviceentityType - the EdmEntityTypeentity - the data of the entityoptions - options for the serializerSerializerExceptionpublic SerializerResult primitive(ServiceMetadata metadata, EdmPrimitiveType type, Property property, PrimitiveSerializerOptions options) throws SerializerException
ODataSerializerprimitive in interface ODataSerializermetadata - metadata for the servicetype - primitive typeproperty - property valueoptions - options for the serializerSerializerExceptionpublic SerializerResult complex(ServiceMetadata metadata, EdmComplexType type, Property property, ComplexSerializerOptions options) throws SerializerException
ODataSerializercomplex in interface ODataSerializermetadata - metadata for the servicetype - complex typeproperty - property valueoptions - options for the serializerSerializerExceptionpublic SerializerResult primitiveCollection(ServiceMetadata metadata, EdmPrimitiveType type, Property property, PrimitiveSerializerOptions options) throws SerializerException
ODataSerializerprimitiveCollection in interface ODataSerializermetadata - metadata for the servicetype - primitive typeproperty - property valueoptions - options for the serializerSerializerExceptionpublic SerializerResult complexCollection(ServiceMetadata metadata, EdmComplexType type, Property property, ComplexSerializerOptions options) throws SerializerException
ODataSerializercomplexCollection in interface ODataSerializermetadata - metadata for the servicetype - complex typeproperty - property valueoptions - options for the serializerSerializerExceptionpublic SerializerResult reference(ServiceMetadata metadata, EdmEntitySet edmEntitySet, Entity entity, ReferenceSerializerOptions options) throws SerializerException
ODataSerializerreference in interface ODataSerializermetadata - metadata for the serviceedmEntitySet - EdmEntitySetentity - data of the entityoptions - ReferenceSerializerOptionsSerializerExceptionpublic SerializerResult referenceCollection(ServiceMetadata metadata, EdmEntitySet edmEntitySet, AbstractEntityCollection entityCollection, ReferenceCollectionSerializerOptions options) throws SerializerException
ODataSerializerreferenceCollection in interface ODataSerializermetadata - metadata for the serviceedmEntitySet - EdmEntitySetentityCollection - data of the entity collectionoptions - ReferenceCollectionSerializerOptionsSerializerExceptionCopyright © 2023. All rights reserved.