public interface CommonODataReader
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.
|
CommonODataEntity |
readEntity(InputStream input,
ODataFormat format)
Parses a stream taking care to de-serializes the first OData entity found.
|
CommonODataEntitySet |
readEntitySet(InputStream input,
ODataFormat format)
De-Serializes a stream into an OData entity set.
|
ODataError |
readError(InputStream inputStream,
ODataFormat format)
Parses a stream into an OData error.
|
Edm |
readMetadata(InputStream input)
Parses a stream into metadata representation.
|
Edm |
readMetadata(Map<String,Schema> xmlSchemas)
Parses a stream into metadata representation, including referenced metadata documents.
|
CommonODataProperty |
readProperty(InputStream input,
ODataFormat format)
Parses a stream taking care to de-serialize the first OData entity property found.
|
ODataServiceDocument |
readServiceDocument(InputStream input,
ODataFormat format)
Parses an OData service document.
|
Edm readMetadata(InputStream input)
input
- stream to de-serialize.Edm readMetadata(Map<String,Schema> xmlSchemas)
xmlSchemas
- XML representation of the requested metadata document + any other referenced (via
<edmx:Reference/>) metadata documentODataServiceDocument readServiceDocument(InputStream input, ODataFormat format) throws ODataDeserializerException
input
- stream to de-serialize.format
- de-serialize as XML or JSONODataDeserializerException
CommonODataEntitySet readEntitySet(InputStream input, ODataFormat format) throws ODataDeserializerException
input
- stream to de-serialize.format
- de-serialize formatODataDeserializerException
CommonODataEntity readEntity(InputStream input, ODataFormat format) throws ODataDeserializerException
input
- stream to de-serialize.format
- de-serialize formatODataDeserializerException
CommonODataProperty readProperty(InputStream input, ODataFormat format) throws ODataDeserializerException
input
- stream to de-serialize.format
- de-serialize as XML or JSONODataDeserializerException
ODataError readError(InputStream inputStream, ODataFormat format) throws ODataDeserializerException
inputStream
- stream to de-serialize.format
- formatODataDeserializerException
<T> ResWrap<T> read(InputStream src, String format, Class<T> reference) throws ODataDeserializerException
T
- expected object type.src
- input stream.format
- formatreference
- reference.ODataDeserializerException
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.