org.apache.axis2.jibx
Class JiBXDataSource
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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.