public interface ODataDeserializer
Modifier and Type | Method and Description |
---|---|
DeserializerResult |
actionParameters(InputStream stream,
EdmAction edmAction)
Deserializes an action-parameters stream into a map of key/value pairs.
|
DeserializerResult |
entity(InputStream stream,
EdmEntityType edmEntityType)
Deserializes an entity stream into an
Entity object. |
DeserializerResult |
entityCollection(InputStream stream,
EdmEntityType edmEntityType)
Deserializes an entity collection stream into an
EntityCollection object. |
DeserializerResult |
entityReferences(InputStream stream)
Reads entity references from the provided document.
|
DeserializerResult |
property(InputStream stream,
EdmProperty edmProperty)
Deserializes the Property or collections of properties (primitive & complex).
|
DeserializerResult entity(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException
Entity
object.
Validates: property types, no double properties, correct json types.
Returns a deserialized Entity
object and an
ExpandOption
object.stream
- edmEntityType
- DeserializerResult.getEntity()
and DeserializerResult.getExpandTree()
DeserializerException
DeserializerResult entityCollection(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException
EntityCollection
object.stream
- edmEntityType
- DeserializerResult.getEntityCollection()
DeserializerException
DeserializerResult actionParameters(InputStream stream, EdmAction edmAction) throws DeserializerException
stream
- edmAction
- DeserializerResult.getActionParameters()
DeserializerException
DeserializerResult property(InputStream stream, EdmProperty edmProperty) throws DeserializerException
stream
- edmProperty
- DeserializerResult.getProperty()
DeserializerException
DeserializerResult entityReferences(InputStream stream) throws DeserializerException
stream
- keys
- DeserializerResult.getEntityReferences()
DeserializerException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.