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 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(Object obj, String mapping, String name, String uri, String prefix, int[] nsindexes, String[] nsprefixes, org.jibx.runtime.IBindingFactory factory)
          Constructor from object with mapping index 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 marshallable object and binding factory.

Parameters:
obj -
factory -

JiBXDataSource

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

Parameters:
obj -
mapping -
name -
uri -
prefix -
nsindexes -
nsprefixes -
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


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.