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 -
        edmProperty -
        readProperties -
        Returns:
        Map
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException
      • 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 -
        propertyInfo -
        readProperties -
        Returns:
        Map
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException
      • 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 -
        propertyInfo -
        readProperties -
        Returns:
        List
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException
      • 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