public class ODataXmlSerializer extends AbstractODataSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET
The default character set is UTF-8.
|
IO_EXCEPTION_TEXT| Constructor and Description |
|---|
ODataXmlSerializer() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.olingo.server.api.serializer.SerializerResult |
complex(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.ComplexSerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
complexCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.ComplexSerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
entity(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.server.api.serializer.EntitySerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
entityCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.server.api.serializer.EntityCollectionSerializerOptions options) |
protected org.apache.olingo.server.api.serializer.SerializerResult |
entityReference(org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.server.api.serializer.ReferenceSerializerOptions options) |
protected org.apache.olingo.server.api.serializer.SerializerResult |
entityReferenceCollection(org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.server.api.serializer.ReferenceCollectionSerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
error(org.apache.olingo.server.api.ODataServerError error) |
protected org.apache.olingo.commons.api.data.Link |
getOrCreateLink(org.apache.olingo.commons.api.data.Linked linked,
String navigationPropertyName) |
org.apache.olingo.server.api.serializer.SerializerResult |
metadataDocument(org.apache.olingo.server.api.ServiceMetadata serviceMetadata) |
org.apache.olingo.server.api.serializer.SerializerResult |
primitive(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.PrimitiveSerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
primitiveCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.PrimitiveSerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
reference(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntitySet edmEntitySet,
org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.server.api.serializer.ReferenceSerializerOptions options) |
org.apache.olingo.server.api.serializer.SerializerResult |
referenceCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntitySet edmEntitySet,
org.apache.olingo.commons.api.data.EntityCollection entityCollection,
org.apache.olingo.server.api.serializer.ReferenceCollectionSerializerOptions options) |
protected org.apache.olingo.commons.api.edm.EdmComplexType |
resolveComplexType(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType baseType,
String derivedTypeName) |
protected org.apache.olingo.commons.api.edm.EdmEntityType |
resolveEntityType(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType baseType,
String derivedTypeName) |
org.apache.olingo.server.api.serializer.SerializerResult |
serviceDocument(org.apache.olingo.server.api.ServiceMetadata metadata,
String serviceRoot) |
protected void |
writeComplexValue(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType type,
List<org.apache.olingo.commons.api.data.Property> properties,
Set<List<String>> selectedPaths,
XMLStreamWriter writer) |
protected void |
writeEntity(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.commons.api.data.ContextURL contextURL,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
org.apache.olingo.server.api.uri.queryoption.SelectOption select,
XMLStreamWriter writer,
boolean top) |
protected void |
writeEntitySet(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
org.apache.olingo.server.api.uri.queryoption.SelectOption select,
XMLStreamWriter writer) |
protected void |
writeExpandedNavigationProperty(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmNavigationProperty property,
org.apache.olingo.commons.api.data.Link navigationLink,
org.apache.olingo.server.api.uri.queryoption.ExpandOption innerExpand,
org.apache.olingo.server.api.uri.queryoption.SelectOption innerSelect,
XMLStreamWriter writer) |
protected void |
writeNavigationProperties(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmStructuredType type,
org.apache.olingo.commons.api.data.Linked linked,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
XMLStreamWriter writer) |
protected void |
writePrimitiveValue(org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
Object primitiveValue,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode,
XMLStreamWriter writer) |
protected void |
writeProperties(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmStructuredType type,
List<org.apache.olingo.commons.api.data.Property> properties,
org.apache.olingo.server.api.uri.queryoption.SelectOption select,
XMLStreamWriter writer) |
protected void |
writeProperty(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmProperty edmProperty,
org.apache.olingo.commons.api.data.Property property,
Set<List<String>> selectedPaths,
XMLStreamWriter writer) |
closeCircleStreamBufferOutputpublic static final String DEFAULT_CHARSET
public org.apache.olingo.server.api.serializer.SerializerResult serviceDocument(org.apache.olingo.server.api.ServiceMetadata metadata,
String serviceRoot)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult metadataDocument(org.apache.olingo.server.api.ServiceMetadata serviceMetadata)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult error(org.apache.olingo.server.api.ODataServerError error)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult entityCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.server.api.serializer.EntityCollectionSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult entity(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.server.api.serializer.EntitySerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionprotected void writeEntitySet(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
org.apache.olingo.server.api.uri.queryoption.SelectOption select,
XMLStreamWriter writer)
throws XMLStreamException,
org.apache.olingo.server.api.serializer.SerializerException
XMLStreamExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionprotected void writeEntity(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType entityType,
org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.commons.api.data.ContextURL contextURL,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
org.apache.olingo.server.api.uri.queryoption.SelectOption select,
XMLStreamWriter writer,
boolean top)
throws XMLStreamException,
org.apache.olingo.server.api.serializer.SerializerException
XMLStreamExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionprotected org.apache.olingo.commons.api.edm.EdmEntityType resolveEntityType(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntityType baseType,
String derivedTypeName)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionprotected org.apache.olingo.commons.api.edm.EdmComplexType resolveComplexType(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType baseType,
String derivedTypeName)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionprotected void writeProperties(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmStructuredType type,
List<org.apache.olingo.commons.api.data.Property> properties,
org.apache.olingo.server.api.uri.queryoption.SelectOption select,
XMLStreamWriter writer)
throws XMLStreamException,
org.apache.olingo.server.api.serializer.SerializerException
XMLStreamExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionprotected void writeNavigationProperties(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmStructuredType type,
org.apache.olingo.commons.api.data.Linked linked,
org.apache.olingo.server.api.uri.queryoption.ExpandOption expand,
XMLStreamWriter writer)
throws org.apache.olingo.server.api.serializer.SerializerException,
XMLStreamException
org.apache.olingo.server.api.serializer.SerializerExceptionXMLStreamExceptionprotected org.apache.olingo.commons.api.data.Link getOrCreateLink(org.apache.olingo.commons.api.data.Linked linked,
String navigationPropertyName)
throws XMLStreamException
XMLStreamExceptionprotected void writeExpandedNavigationProperty(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmNavigationProperty property,
org.apache.olingo.commons.api.data.Link navigationLink,
org.apache.olingo.server.api.uri.queryoption.ExpandOption innerExpand,
org.apache.olingo.server.api.uri.queryoption.SelectOption innerSelect,
XMLStreamWriter writer)
throws XMLStreamException,
org.apache.olingo.server.api.serializer.SerializerException
XMLStreamExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionprotected void writeProperty(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmProperty edmProperty,
org.apache.olingo.commons.api.data.Property property,
Set<List<String>> selectedPaths,
XMLStreamWriter writer)
throws XMLStreamException,
org.apache.olingo.server.api.serializer.SerializerException
XMLStreamExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionprotected void writePrimitiveValue(org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
Object primitiveValue,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode,
XMLStreamWriter writer)
throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException,
XMLStreamException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionXMLStreamExceptionprotected void writeComplexValue(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType type,
List<org.apache.olingo.commons.api.data.Property> properties,
Set<List<String>> selectedPaths,
XMLStreamWriter writer)
throws XMLStreamException,
org.apache.olingo.server.api.serializer.SerializerException
XMLStreamExceptionorg.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult primitive(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.PrimitiveSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult complex(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.ComplexSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult primitiveCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmPrimitiveType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.PrimitiveSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult complexCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmComplexType type,
org.apache.olingo.commons.api.data.Property property,
org.apache.olingo.server.api.serializer.ComplexSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult reference(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntitySet edmEntitySet,
org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.server.api.serializer.ReferenceSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionprotected org.apache.olingo.server.api.serializer.SerializerResult entityReference(org.apache.olingo.commons.api.data.Entity entity,
org.apache.olingo.server.api.serializer.ReferenceSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic org.apache.olingo.server.api.serializer.SerializerResult referenceCollection(org.apache.olingo.server.api.ServiceMetadata metadata,
org.apache.olingo.commons.api.edm.EdmEntitySet edmEntitySet,
org.apache.olingo.commons.api.data.EntityCollection entityCollection,
org.apache.olingo.server.api.serializer.ReferenceCollectionSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionprotected org.apache.olingo.server.api.serializer.SerializerResult entityReferenceCollection(org.apache.olingo.commons.api.data.EntityCollection entitySet,
org.apache.olingo.server.api.serializer.ReferenceCollectionSerializerOptions options)
throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.