org.apache.axis2.databinding
Class ADBDataSource

java.lang.Object
  extended byorg.apache.axis2.databinding.ADBDataSource
All Implemented Interfaces:
org.apache.axiom.om.OMDataSource

public abstract class ADBDataSource
extends Object
implements org.apache.axiom.om.OMDataSource


Field Summary
protected  QName parentQName
           
 
Constructor Summary
protected ADBDataSource(ADBBean bean, QName parentQName)
          Constructor taking in an ADBBean
 
Method Summary
 XMLStreamReader getReader()
           
 void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format)
           
abstract  void serialize(XMLStreamWriter xmlWriter)
          This needs to be generated inside the ADB bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentQName

protected QName parentQName
Constructor Detail

ADBDataSource

protected ADBDataSource(ADBBean bean,
                        QName parentQName)
Constructor taking in an ADBBean

Parameters:
bean -
Method Detail

serialize

public void serialize(OutputStream output,
                      org.apache.axiom.om.OMOutputFormat format)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Parameters:
output -
format -
Throws:
XMLStreamException
See Also:
OMDataSource.serialize(java.io.OutputStream, org.apache.axiom.om.OMOutputFormat)

serialize

public void serialize(Writer writer,
                      org.apache.axiom.om.OMOutputFormat format)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Parameters:
writer -
format -
Throws:
XMLStreamException
See Also:
OMDataSource.serialize(java.io.Writer, org.apache.axiom.om.OMOutputFormat)

serialize

public abstract void serialize(XMLStreamWriter xmlWriter)
                        throws XMLStreamException
This needs to be generated inside the ADB bean

Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Parameters:
xmlWriter -
Throws:
XMLStreamException
See Also:
OMDataSource.serialize(javax.xml.stream.XMLStreamWriter)

getReader

public XMLStreamReader getReader()
                          throws XMLStreamException
Specified by:
getReader in interface org.apache.axiom.om.OMDataSource
Throws:
XMLStreamException
See Also:
OMDataSource.getReader()