Class XmlPropertyEntityProducer
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.producer.XmlPropertyEntityProducer
-
public class XmlPropertyEntityProducer extends Object
Internal EntityProvider for simple and complex EDM properties which are pre-analyzed asEntityPropertyInfo.
-
-
Constructor Summary
Constructors Constructor Description XmlPropertyEntityProducer(boolean includeSimplePropertyType, boolean validateFacets)XmlPropertyEntityProducer(EntityProviderWriteProperties 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.voidappend(XMLStreamWriter writer, EntityPropertyInfo propertyInfo, Object value)AppendObjectvaluebased onEntityPropertyInfotoXMLStreamWriteras a stand-alone XML structure, including writing of default namespace declarations.voidappendCustomProperty(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value)
-
-
-
Constructor Detail
-
XmlPropertyEntityProducer
public XmlPropertyEntityProducer(EntityProviderWriteProperties writeProperties)
-
XmlPropertyEntityProducer
public XmlPropertyEntityProducer(boolean includeSimplePropertyType, boolean validateFacets)
-
-
Method Detail
-
append
public void append(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value) throws EntityProviderException
AppendObjectvaluebased onEntityPropertyInfotoXMLStreamWriterin an already existing XML structure inside the d namespace.- Parameters:
writer-name- Name of the outer XML tagpropertyInfo-value-- Throws:
EntityProviderException
-
appendCustomProperty
public void appendCustomProperty(XMLStreamWriter writer, String name, EntityPropertyInfo propertyInfo, Object value) throws EntityProviderException
- Throws:
EntityProviderException
-
append
public void append(XMLStreamWriter writer, EntityPropertyInfo propertyInfo, Object value) throws EntityProviderException
AppendObjectvaluebased onEntityPropertyInfotoXMLStreamWriteras a stand-alone XML structure, including writing of default namespace declarations. The name of the outermost XML element comes from theEntityPropertyInfo.- Parameters:
writer-propertyInfo-value-- Throws:
EntityProviderException
-
-