Package org.apache.axis2.databinding
Class ADBHelperDataSource<T>
- java.lang.Object
-
- org.apache.axiom.om.ds.AbstractOMDataSource
-
- org.apache.axiom.om.ds.AbstractPushOMDataSource
-
- org.apache.axis2.databinding.AbstractADBDataSource
-
- org.apache.axis2.databinding.ADBHelperDataSource<T>
-
- All Implemented Interfaces:
org.apache.axiom.om.OMDataSource,org.apache.axiom.om.OMDataSourceExt,org.apache.axiom.om.QNameAwareOMDataSource
public class ADBHelperDataSource<T> extends AbstractADBDataSource
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.databinding.AbstractADBDataSource
parentQName
-
-
Constructor Summary
Constructors Constructor Description ADBHelperDataSource(T bean, QName parentQName, ADBHelper<T> helper)Constructor taking in an ADBBean
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the DataSource and free its resources.ObjectgetObject()Returns the backing Object.voidserialize(XMLStreamWriter xmlWriter)This needs to be generated inside the ADB bean-
Methods inherited from class org.apache.axis2.databinding.AbstractADBDataSource
copy, getLocalName, getNamespaceURI, getPrefix, isDestructiveWrite
-
Methods inherited from class org.apache.axiom.om.ds.AbstractPushOMDataSource
getReader, isDestructiveRead
-
Methods inherited from class org.apache.axiom.om.ds.AbstractOMDataSource
getProperty, getXMLBytes, getXMLInputStream, hasProperty, serialize, serialize, setProperty
-
-
-
-
Method Detail
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
This needs to be generated inside the ADB bean- Parameters:
xmlWriter-- Throws:
XMLStreamException- See Also:
OMDataSource.serialize(javax.xml.stream.XMLStreamWriter)
-
getObject
public Object getObject()
Returns the backing Object.- Specified by:
getObjectin interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
getObjectin classorg.apache.axiom.om.ds.AbstractOMDataSource- Returns:
- Object
-
close
public void close()
Close the DataSource and free its resources.- Specified by:
closein interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
closein classorg.apache.axiom.om.ds.AbstractOMDataSource
-
-