Class XmlPropertyEntityProducer
java.lang.Object
org.apache.olingo.odata2.core.ep.producer.XmlPropertyEntityProducer
Internal EntityProvider for simple and complex EDM properties which are pre-analyzed as
EntityPropertyInfo.-
Constructor Summary
ConstructorsConstructorDescriptionXmlPropertyEntityProducer(boolean includeSimplePropertyType, boolean validateFacets) XmlPropertyEntityProducer(EntityProviderWriteProperties writeProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(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 Details
-
XmlPropertyEntityProducer
-
XmlPropertyEntityProducer
public XmlPropertyEntityProducer(boolean includeSimplePropertyType, boolean validateFacets)
-
-
Method Details
-
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- Writername- Name of the outer XML tagpropertyInfo- Propriedadevalue- Valor- Throws:
EntityProviderException- Caso ocorra exceção
-
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- WriterpropertyInfo- Propriedadevalue- Valor- Throws:
EntityProviderException- Caso ocorra exceção
-