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 OMDataSourceExtcopy()JAXBDSContextgetContext()ObjectgetObject()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
-
-
-
-
Constructor Detail
-
JAXBDataSource
public JAXBDataSource(Object jaxb, JAXBDSContext context)
-
-
Method Detail
-
copy
public OMDataSourceExt copy()
- Specified by:
copyin interfaceOMDataSourceExt- Overrides:
copyin classAbstractOMDataSource
-
getObject
public Object getObject()
- Specified by:
getObjectin interfaceOMDataSourceExt- Overrides:
getObjectin classAbstractOMDataSource
-
getContext
public JAXBDSContext getContext()
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Throws:
XMLStreamException
-
isDestructiveWrite
public boolean isDestructiveWrite()
-
-