Package org.apache.axis2.jibx
Class JiBXDataSource
- java.lang.Object
-
- org.apache.axiom.om.ds.AbstractOMDataSource
-
- org.apache.axiom.om.ds.AbstractPushOMDataSource
-
- org.apache.axis2.jibx.JiBXDataSource
-
- All Implemented Interfaces:
OMDataSource,OMDataSourceExt,QNameAwareOMDataSource
public class JiBXDataSource extends AbstractPushOMDataSource implements QNameAwareOMDataSource
Data source for OM element backed by JiBX data bound object.
-
-
Constructor Summary
Constructors Constructor Description 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.JiBXDataSource(org.jibx.runtime.IMarshallable obj, org.jibx.runtime.IBindingFactory factory)Constructor from marshallable object and binding factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMDataSourceExtcopy()StringgetLocalName()StringgetNamespaceURI()ObjectgetObject()StringgetPrefix()booleanisDestructiveWrite()voidserialize(XMLStreamWriter xmlWriter)-
Methods inherited from class org.apache.axiom.om.ds.AbstractPushOMDataSource
getReader, isDestructiveRead
-
Methods inherited from class org.apache.axiom.om.ds.AbstractOMDataSource
close, getProperty, getXMLBytes, getXMLInputStream, hasProperty, serialize, serialize, setProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.axiom.om.OMDataSource
getReader, serialize, serialize
-
-
-
-
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
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceQNameAwareOMDataSource
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURIin interfaceQNameAwareOMDataSource
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceQNameAwareOMDataSource
-
isDestructiveWrite
public boolean isDestructiveWrite()
- Specified by:
isDestructiveWritein interfaceOMDataSourceExt
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serializein interfaceOMDataSource- Throws:
XMLStreamException
-
getObject
public Object getObject()
- Specified by:
getObjectin interfaceOMDataSourceExt- Overrides:
getObjectin classAbstractOMDataSource
-
copy
public OMDataSourceExt copy()
- Specified by:
copyin interfaceOMDataSourceExt- Overrides:
copyin classAbstractOMDataSource
-
-