Interface ODataDeserializer
public interface ODataDeserializer
Deserializer on OData server side.
-
Method Summary
Modifier and TypeMethodDescriptionactionParameters(InputStream stream, EdmAction edmAction) Deserializes an action-parameters stream into a map of key/value pairs.entity(InputStream stream, EdmEntityType edmEntityType) Deserializes an entity stream into anEntityobject.entityCollection(InputStream stream, EdmEntityType edmEntityType) Deserializes an entity collection stream into anEntityCollectionobject.entityReferences(InputStream stream) Reads entity references from the provided document.property(InputStream stream, EdmProperty edmProperty) Deserializes the Property or collections of properties (primitive & complex).
-
Method Details
-
entity
DeserializerResult entity(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException Deserializes an entity stream into anEntityobject. Validates: property types, no double properties, correct json types. Returns a deserializedEntityobject and anExpandOptionobject.- Parameters:
stream-edmEntityType-- Returns:
DeserializerResult.getEntity()andDeserializerResult.getExpandTree()- Throws:
DeserializerException
-
entityCollection
DeserializerResult entityCollection(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException Deserializes an entity collection stream into anEntityCollectionobject.- Parameters:
stream-edmEntityType-- Returns:
DeserializerResult.getEntityCollection()- Throws:
DeserializerException
-
actionParameters
DeserializerResult actionParameters(InputStream stream, EdmAction edmAction) throws DeserializerException Deserializes an action-parameters stream into a map of key/value pairs. Validates: parameter types, no double parameters, correct json types.- Parameters:
stream-edmAction-- Returns:
DeserializerResult.getActionParameters()- Throws:
DeserializerException
-
property
DeserializerResult property(InputStream stream, EdmProperty edmProperty) throws DeserializerException Deserializes the Property or collections of properties (primitive & complex).- Parameters:
stream-edmProperty-- Returns:
DeserializerResult.getProperty()- Throws:
DeserializerException
-
entityReferences
Reads entity references from the provided document.- Parameters:
stream-keys-- Returns:
DeserializerResult.getEntityReferences()- Throws:
DeserializerException
-