Class JsonDeserializer
java.lang.Object
org.apache.olingo.client.core.serialization.JsonDeserializer
- All Implemented Interfaces:
ODataDeserializer
- Direct Known Subclasses:
JsonDeltaDeserializer,JsonEntityDeserializer,JsonEntitySetDeserializer,JsonODataErrorDeserializer,JsonODataErrorDetailDeserializer,JsonPropertyDeserializer,JSONServiceDocumentDeserializer,XMLServiceDocumentDeserializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetJSONAnnotation(String string) protected Stringprotected voidlinks(Map.Entry<String, com.fasterxml.jackson.databind.JsonNode> field, Linked linked, Set<String> toRemove, com.fasterxml.jackson.databind.JsonNode tree, com.fasterxml.jackson.core.ObjectCodec codec) protected voidpopulate(Annotatable annotatable, List<Property> properties, com.fasterxml.jackson.databind.node.ObjectNode tree, com.fasterxml.jackson.core.ObjectCodec codec) protected StringsetInline(String name, String suffix, com.fasterxml.jackson.databind.JsonNode tree, com.fasterxml.jackson.core.ObjectCodec codec, Link link) toEntity(InputStream input) Gets an entity object from the given InputStream.toEntitySet(InputStream input) Gets an entity set object from the given InputStream.toError(InputStream input) Gets the ODataError object represented by the given InputStream.toProperty(InputStream input) Gets a property object from the given InputStream.protected voidvalue(Valuable valuable, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.core.ObjectCodec codec)
-
Field Details
-
CUSTOM_ANNOTATION
-
serverMode
protected final boolean serverMode
-
-
Constructor Details
-
JsonDeserializer
public JsonDeserializer(boolean serverMode)
-
-
Method Details
-
getJSONAnnotation
-
getTitle
-
setInline
protected String setInline(String name, String suffix, com.fasterxml.jackson.databind.JsonNode tree, com.fasterxml.jackson.core.ObjectCodec codec, Link link) throws IOException - Throws:
IOException
-
links
protected void links(Map.Entry<String, com.fasterxml.jackson.databind.JsonNode> field, Linked linked, Set<String> toRemove, com.fasterxml.jackson.databind.JsonNode tree, com.fasterxml.jackson.core.ObjectCodec codec) throws IOException- Throws:
IOException
-
populate
protected void populate(Annotatable annotatable, List<Property> properties, com.fasterxml.jackson.databind.node.ObjectNode tree, com.fasterxml.jackson.core.ObjectCodec codec) throws IOException, EdmPrimitiveTypeException - Throws:
IOExceptionEdmPrimitiveTypeException
-
value
protected void value(Valuable valuable, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.core.ObjectCodec codec) throws IOException, EdmPrimitiveTypeException - Throws:
IOExceptionEdmPrimitiveTypeException
-
toEntitySet
Description copied from interface:ODataDeserializerGets an entity set object from the given InputStream.- Specified by:
toEntitySetin interfaceODataDeserializer- Parameters:
input- stream to be de-serialized.- Returns:
EntityCollectioninstance.- Throws:
ODataDeserializerException
-
toEntity
Description copied from interface:ODataDeserializerGets an entity object from the given InputStream.- Specified by:
toEntityin interfaceODataDeserializer- Parameters:
input- stream to be de-serialized.- Returns:
Entityinstance.- Throws:
ODataDeserializerException
-
toProperty
Description copied from interface:ODataDeserializerGets a property object from the given InputStream.- Specified by:
toPropertyin interfaceODataDeserializer- Parameters:
input- stream to be de-serialized.- Returns:
- Property instance.
- Throws:
ODataDeserializerException
-
toError
Description copied from interface:ODataDeserializerGets the ODataError object represented by the given InputStream.- Specified by:
toErrorin interfaceODataDeserializer- Parameters:
input- stream to be parsed and de-serialized.- Returns:
- parsed ODataError object represented by the given InputStream
- Throws:
ODataDeserializerException
-