Class JsonPropertyDeserializer
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.ep.deserializer.JsonPropertyDeserializer
-
public class JsonPropertyDeserializer extends Object
JSON property consumer.
-
-
Constructor Summary
Constructors Constructor Description JsonPropertyDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidreadAndCheckTypeInfo(com.google.gson.stream.JsonReader reader, String expectedTypeName)List<?>readCollection(com.google.gson.stream.JsonReader reader, EntityPropertyInfo propertyInfo, DeserializerProperties readProperties)This method reads through a collection of entities and deserializes each entryMap<String,Object>readPropertyStandalone(com.google.gson.stream.JsonReader reader, org.apache.olingo.odata2.api.edm.EdmProperty edmProperty, DeserializerProperties readProperties)Deserializes PropertyMap<String,Object>readPropertyStandalone(com.google.gson.stream.JsonReader reader, EntityPropertyInfo propertyInfo, DeserializerProperties readProperties)Deserializes Propertyprotected ObjectreadPropertyValue(com.google.gson.stream.JsonReader reader, EntityPropertyInfo entityPropertyInfo, Object typeMapping, DeserializerProperties readProperties)
-
-
-
Method Detail
-
readPropertyStandalone
public Map<String,Object> readPropertyStandalone(com.google.gson.stream.JsonReader reader, org.apache.olingo.odata2.api.edm.EdmProperty edmProperty, DeserializerProperties readProperties) throws org.apache.olingo.odata2.api.ep.EntityProviderException
Deserializes Property- Parameters:
reader- JsonReaderedmProperty- EdmPropertyreadProperties- DeserializerProperties- Returns:
- Map<String, Object>
- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException- Caso ocorra exceção
-
readPropertyStandalone
public Map<String,Object> readPropertyStandalone(com.google.gson.stream.JsonReader reader, EntityPropertyInfo propertyInfo, DeserializerProperties readProperties) throws org.apache.olingo.odata2.api.ep.EntityProviderException
Deserializes Property- Parameters:
reader- JsonReaderpropertyInfo- EntityPropertyInforeadProperties- DeserializerProperties- Returns:
- Map<String, Object>
- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException- Caso ocorra exceção
-
readCollection
public List<?> readCollection(com.google.gson.stream.JsonReader reader, EntityPropertyInfo propertyInfo, DeserializerProperties readProperties) throws org.apache.olingo.odata2.api.ep.EntityProviderException
This method reads through a collection of entities and deserializes each entry- Parameters:
reader- JsonReaderpropertyInfo- EntityPropertyInforeadProperties- DeserializerProperties- Returns:
- List<?>
- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException- Caso ocorra exceção
-
readPropertyValue
protected Object readPropertyValue(com.google.gson.stream.JsonReader reader, EntityPropertyInfo entityPropertyInfo, Object typeMapping, DeserializerProperties readProperties) throws org.apache.olingo.odata2.api.ep.EntityProviderException
- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
readAndCheckTypeInfo
protected void readAndCheckTypeInfo(com.google.gson.stream.JsonReader reader, String expectedTypeName) throws IOException, org.apache.olingo.odata2.api.ep.EntityProviderException- Throws:
IOExceptionorg.apache.olingo.odata2.api.ep.EntityProviderException
-
-