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 OMDataSourceExt
copy()
String
getLocalName()
String
getNamespaceURI()
Object
getObject()
String
getPrefix()
boolean
isDestructiveWrite()
void
serialize(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:
getLocalName
in interfaceQNameAwareOMDataSource
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceQNameAwareOMDataSource
-
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interfaceQNameAwareOMDataSource
-
isDestructiveWrite
public boolean isDestructiveWrite()
- Specified by:
isDestructiveWrite
in interfaceOMDataSourceExt
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serialize
in interfaceOMDataSource
- Throws:
XMLStreamException
-
getObject
public Object getObject()
- Specified by:
getObject
in interfaceOMDataSourceExt
- Overrides:
getObject
in classAbstractOMDataSource
-
copy
public OMDataSourceExt copy()
- Specified by:
copy
in interfaceOMDataSourceExt
- Overrides:
copy
in classAbstractOMDataSource
-
-