org.apache.axis2.jibx
Class JiBXDataSource

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

public class JiBXDataSource
extends Object
implements org.apache.axiom.om.OMDataSource

Data source for OM element backed by JiBX data bound object.


Constructor Summary
JiBXDataSource(org.jibx.runtime.IMarshallable obj, org.jibx.runtime.IBindingFactory factory)
          Constructor from object and binding factory.
 
Method Summary
 XMLStreamReader getReader()
           
 void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(XMLStreamWriter xmlWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiBXDataSource

public JiBXDataSource(org.jibx.runtime.IMarshallable obj,
                      org.jibx.runtime.IBindingFactory factory)
Constructor from object and binding factory.

Parameters:
obj -
factory -
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
Throws:
XMLStreamException

serialize

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

serialize

public void serialize(XMLStreamWriter xmlWriter)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Throws:
XMLStreamException

getReader

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