Class XmlPropertyDeserializer
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.ep.deserializer.XmlPropertyDeserializer
-
public class XmlPropertyDeserializer extends Object
XML property consumer.
-
-
Constructor Summary
Constructors Constructor Description XmlPropertyDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>readCollection(XMLStreamReader reader, EntityPropertyInfo info, DeserializerProperties properties)Deserializes a collection of entitiesMap<String,Object>readProperty(XMLStreamReader reader, org.apache.olingo.odata2.api.edm.EdmProperty property, DeserializerProperties readProperties)Read property of every entry in a payloadMap<String,Object>readProperty(XMLStreamReader reader, EntityPropertyInfo propertyInfo, DeserializerProperties readProperties)Read property of every entry in a payloadprotected ObjectreadStartedElement(XMLStreamReader reader, String name, EntityPropertyInfo propertyInfo, EntityTypeMapping typeMappings, DeserializerProperties readProperties)
-
-
-
Field Detail
-
TRUE
protected static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
protected static final String FALSE
- See Also:
- Constant Field Values
-
-
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- XMLStreamReaderproperty- EdmPropertyreadProperties- 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- XMLStreamReaderpropertyInfo- EntityPropertyInforeadProperties- 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- XMLStreamReaderinfo- EntityPropertyInfoproperties- 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.EntityProviderExceptionorg.apache.olingo.odata2.api.edm.EdmException
-
-