org.apache.axis2.jibx
Class JiBXDataSource

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

public class JiBXDataSource
extends java.lang.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 marshallable object and binding factory.
JiBXDataSource(java.lang.Object obj, int index, java.lang.String name, java.lang.String uri, java.lang.String prefix, int[] nsindexes, java.lang.String[] nsprefixes, org.jibx.runtime.IBindingFactory factory)
          Constructor from object with mapping index and binding factory.
 
Method Summary
 javax.xml.stream.XMLStreamReader getReader()
           
 void serialize(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(java.io.Writer writer, org.apache.axiom.om.OMOutputFormat format)
           
 void serialize(javax.xml.stream.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 marshallable object and binding factory.

Parameters:
obj -
factory -

JiBXDataSource

public JiBXDataSource(java.lang.Object obj,
                      int index,
                      java.lang.String name,
                      java.lang.String uri,
                      java.lang.String prefix,
                      int[] nsindexes,
                      java.lang.String[] nsprefixes,
                      org.jibx.runtime.IBindingFactory factory)
Constructor from object with mapping index and binding factory.

Parameters:
obj -
index -
name -
uri -
prefix -
nsindexes -
nsprefixes -
factory -
Method Detail

serialize

public void serialize(java.io.OutputStream output,
                      org.apache.axiom.om.OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMDataSource
Throws:
javax.xml.stream.XMLStreamException

serialize

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

serialize

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

getReader

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


Copyright © 2007 Apache Web Services Project. All Rights Reserved.