Package org.apache.axis2.datasource.jaxb
Class JAXBDataSource
- java.lang.Object
-
- org.apache.axiom.om.ds.AbstractOMDataSource
-
- org.apache.axiom.om.ds.AbstractPushOMDataSource
-
- org.apache.axis2.datasource.jaxb.JAXBDataSource
-
- All Implemented Interfaces:
OMDataSource
,OMDataSourceExt
public class JAXBDataSource extends AbstractPushOMDataSource
OMDataSource backed by a jaxb object
-
-
Constructor Summary
Constructors Constructor Description JAXBDataSource(Object jaxb, JAXBDSContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMDataSourceExt
copy()
JAXBDSContext
getContext()
Object
getObject()
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
-
-
-
-
Constructor Detail
-
JAXBDataSource
public JAXBDataSource(Object jaxb, JAXBDSContext context)
-
-
Method Detail
-
copy
public OMDataSourceExt copy()
- Specified by:
copy
in interfaceOMDataSourceExt
- Overrides:
copy
in classAbstractOMDataSource
-
getObject
public Object getObject()
- Specified by:
getObject
in interfaceOMDataSourceExt
- Overrides:
getObject
in classAbstractOMDataSource
-
getContext
public JAXBDSContext getContext()
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Throws:
XMLStreamException
-
isDestructiveWrite
public boolean isDestructiveWrite()
-
-