Class JsonPropertyDeserializer


  • public class JsonPropertyDeserializer
    extends Object
    JSON property consumer.
    • Constructor Detail

      • JsonPropertyDeserializer

        public JsonPropertyDeserializer()
    • 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 - JsonReader
        edmProperty - EdmProperty
        readProperties - 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 - JsonReader
        propertyInfo - EntityPropertyInfo
        readProperties - 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 - JsonReader
        propertyInfo - EntityPropertyInfo
        readProperties - 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:
        IOException
        org.apache.olingo.odata2.api.ep.EntityProviderException