Class XmlPropertyEntitySerializer
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.ep.serializer.XmlPropertyEntitySerializer
-
public class XmlPropertyEntitySerializer extends Object
Internal EntityProvider for simple and complex EDM properties which are pre-analyzed asEntityPropertyInfo.
-
-
Constructor Summary
Constructors Constructor Description XmlPropertyEntitySerializer(boolean validateFacets)XmlPropertyEntitySerializer(EntitySerializerProperties writeProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value)AppendObjectvaluebased onEntityPropertyInfotoXMLStreamWriterin an already existing XML structure inside the d namespace.voidappendCustomProperty(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value)Serializes custom properties
-
-
-
Constructor Detail
-
XmlPropertyEntitySerializer
public XmlPropertyEntitySerializer(EntitySerializerProperties writeProperties)
- Parameters:
writeProperties- EntitySerializerProperties
-
XmlPropertyEntitySerializer
public XmlPropertyEntitySerializer(boolean validateFacets)
- Parameters:
validateFacets- boolean
-
-
Method Detail
-
append
public void append(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value) throws org.apache.olingo.odata2.api.ep.EntityProviderException
AppendObjectvaluebased onEntityPropertyInfotoXMLStreamWriterin an already existing XML structure inside the d namespace.- Parameters:
writer- XMLStreamWritername- Name of the outer XML tagpropertyInfo- EntityPropertyInfovalue- Valor- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException- Caso ocorra exceção
-
appendCustomProperty
public void appendCustomProperty(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value) throws org.apache.olingo.odata2.api.ep.EntityProviderException
Serializes custom properties- Parameters:
writer- XMLStreamWritername- NomepropertyInfo- EntityPropertyInfovalue- Valor- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException- Caso ocorra exceção
-
-