Class XmlPropertyDeserializer


  • public class XmlPropertyDeserializer
    extends Object
    XML property consumer.
    • Constructor Detail

      • XmlPropertyDeserializer

        public XmlPropertyDeserializer()
    • Method Detail

      • readProperty

        public Map<String,​Object> readProperty​(XMLStreamReader reader,
                                                     org.apache.olingo.odata2.api.edm.EdmProperty property,
                                                     DeserializerProperties readProperties)
                                              throws org.apache.olingo.odata2.api.ep.EntityProviderException
        Read property of every entry in a payload
        Parameters:
        reader - XMLStreamReader
        property - EdmProperty
        readProperties - DeserializerProperties
        Returns:
        Map<String, Object>
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException - Caso ocorra uma exceção
      • readProperty

        public Map<String,​Object> readProperty​(XMLStreamReader reader,
                                                     EntityPropertyInfo propertyInfo,
                                                     DeserializerProperties readProperties)
                                              throws org.apache.olingo.odata2.api.ep.EntityProviderException
        Read property of every entry in a payload
        Parameters:
        reader - XMLStreamReader
        propertyInfo - EntityPropertyInfo
        readProperties - DeserializerProperties
        Returns:
        Map<String, Object>
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException - Caso ocorra uma exceção
      • readCollection

        public List<Object> readCollection​(XMLStreamReader reader,
                                           EntityPropertyInfo info,
                                           DeserializerProperties properties)
                                    throws org.apache.olingo.odata2.api.ep.EntityProviderException
        Deserializes a collection of entities
        Parameters:
        reader - XMLStreamReader
        info - EntityPropertyInfo
        properties - DeserializerProperties
        Returns:
        List<Object>
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException - Caso ocorra uma exceção
      • readStartedElement

        protected Object readStartedElement​(XMLStreamReader reader,
                                            String name,
                                            EntityPropertyInfo propertyInfo,
                                            EntityTypeMapping typeMappings,
                                            DeserializerProperties readProperties)
                                     throws org.apache.olingo.odata2.api.ep.EntityProviderException,
                                            org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException
        org.apache.olingo.odata2.api.edm.EdmException