public interface ODataReader
| Modifier and Type | Method and Description |
|---|---|
<T> ResWrap<T> |
read(InputStream src,
String format,
Class<T> reference)
Parses a stream into the object type specified by the given reference.
|
ClientEntity |
readEntity(InputStream input,
org.apache.olingo.commons.api.format.ContentType contentType)
Parses a stream taking care to de-serializes the first OData entity found.
|
ClientEntitySet |
readEntitySet(InputStream input,
org.apache.olingo.commons.api.format.ContentType contentType)
De-Serializes a stream into an OData entity set.
|
org.apache.olingo.commons.api.ex.ODataError |
readError(InputStream inputStream,
org.apache.olingo.commons.api.format.ContentType contentType)
Parses a stream into an OData error.
|
org.apache.olingo.commons.api.edm.Edm |
readMetadata(InputStream input)
Parses a stream into metadata representation.
|
org.apache.olingo.commons.api.edm.Edm |
readMetadata(InputStream input,
List<InputStream> termDefinitions)
Parses a stream into metadata representation.
|
org.apache.olingo.commons.api.edm.Edm |
readMetadata(Map<String,org.apache.olingo.commons.api.edm.provider.CsdlSchema> xmlSchemas)
Parses a stream into metadata representation, including referenced metadata documents.
|
org.apache.olingo.commons.api.edm.Edm |
readMetadata(Map<String,org.apache.olingo.commons.api.edm.provider.CsdlSchema> xmlSchemas,
List<org.apache.olingo.commons.api.edm.provider.CsdlSchema> termDefinitionSchema)
Parses metadata document along with the document which includes term definitions
|
org.apache.olingo.commons.api.edm.Edm |
readMetadata(XMLMetadata metadata,
List<InputStream> termDefinitions)
Fetches schema from metadata document and parses the document which includes term definitions
|
ClientProperty |
readProperty(InputStream input,
org.apache.olingo.commons.api.format.ContentType contentType)
Parses a stream taking care to de-serialize the first OData entity property found.
|
ClientServiceDocument |
readServiceDocument(InputStream input,
org.apache.olingo.commons.api.format.ContentType contentType)
Parses an OData service document.
|
org.apache.olingo.commons.api.edm.Edm readMetadata(InputStream input)
input - stream to de-serialize.org.apache.olingo.commons.api.edm.Edm readMetadata(InputStream input, List<InputStream> termDefinitions)
input - termDefinitions - org.apache.olingo.commons.api.edm.Edm readMetadata(XMLMetadata metadata, List<InputStream> termDefinitions)
metadata - termDefinitions - org.apache.olingo.commons.api.edm.Edm readMetadata(Map<String,org.apache.olingo.commons.api.edm.provider.CsdlSchema> xmlSchemas)
xmlSchemas - XML representation of the requested metadata document + any other referenced (via
<edmx:Reference/>) metadata documentorg.apache.olingo.commons.api.edm.Edm readMetadata(Map<String,org.apache.olingo.commons.api.edm.provider.CsdlSchema> xmlSchemas, List<org.apache.olingo.commons.api.edm.provider.CsdlSchema> termDefinitionSchema)
xmlSchemas - termDefinitionSchema - ClientServiceDocument readServiceDocument(InputStream input, org.apache.olingo.commons.api.format.ContentType contentType) throws ODataDeserializerException
input - stream to de-serialize.contentType - de-serialize as XML or JSONODataDeserializerExceptionClientEntitySet readEntitySet(InputStream input, org.apache.olingo.commons.api.format.ContentType contentType) throws ODataDeserializerException
input - stream to de-serialize.contentType - de-serialize formatODataDeserializerExceptionClientEntity readEntity(InputStream input, org.apache.olingo.commons.api.format.ContentType contentType) throws ODataDeserializerException
input - stream to de-serialize.contentType - de-serialize formatODataDeserializerExceptionClientProperty readProperty(InputStream input, org.apache.olingo.commons.api.format.ContentType contentType) throws ODataDeserializerException
input - stream to de-serialize.contentType - de-serialize as XML or JSONODataDeserializerExceptionorg.apache.olingo.commons.api.ex.ODataError readError(InputStream inputStream, org.apache.olingo.commons.api.format.ContentType contentType) throws ODataDeserializerException
inputStream - stream to de-serialize.contentType - formatODataDeserializerException<T> ResWrap<T> read(InputStream src, String format, Class<T> reference) throws ODataDeserializerException
T - expected object type.src - input stream.format - formatreference - reference.ODataDeserializerExceptionCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.