public class ADBDataSource
extends java.lang.Object
implements org.apache.axiom.om.OMDataSourceExt
| Modifier and Type | Field and Description |
|---|---|
protected javax.xml.namespace.QName |
parentQName |
| Constructor and Description |
|---|
ADBDataSource(ADBBean bean,
javax.xml.namespace.QName parentQName)
Constructor taking in an ADBBean
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the DataSource and free its resources.
|
org.apache.axiom.om.OMDataSourceExt |
copy() |
java.lang.Object |
getObject()
Returns the backing Object.
|
java.lang.Object |
getProperty(java.lang.String key) |
javax.xml.stream.XMLStreamReader |
getReader() |
byte[] |
getXMLBytes(java.lang.String encoding)
Returns a byte[] representing the xml data
|
java.io.InputStream |
getXMLInputStream(java.lang.String encoding)
Returns a InputStream representing the xml data
|
boolean |
hasProperty(java.lang.String key) |
boolean |
isDestructiveRead()
Returns true if reading the backing object is destructive.
|
boolean |
isDestructiveWrite()
Returns true if writing the backing object is destructive.
|
void |
serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format) |
void |
serialize(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat format) |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
This needs to be generated inside the ADB bean
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.Object value) |
public ADBDataSource(ADBBean bean, javax.xml.namespace.QName parentQName)
bean - public void serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in interface org.apache.axiom.om.OMDataSourceExtoutput - format - javax.xml.stream.XMLStreamExceptionOMDataSource.serialize(java.io.OutputStream, org.apache.axiom.om.OMOutputFormat)public void serialize(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in interface org.apache.axiom.om.OMDataSourceExtwriter - format - javax.xml.stream.XMLStreamExceptionOMDataSource.serialize(java.io.Writer, org.apache.axiom.om.OMOutputFormat)public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in interface org.apache.axiom.om.OMDataSourceExtxmlWriter - javax.xml.stream.XMLStreamExceptionOMDataSource.serialize(javax.xml.stream.XMLStreamWriter)public javax.xml.stream.XMLStreamReader getReader()
throws javax.xml.stream.XMLStreamException
getReader in interface org.apache.axiom.om.OMDataSourcegetReader in interface org.apache.axiom.om.OMDataSourceExtjavax.xml.stream.XMLStreamExceptionOMDataSource.getReader()public java.lang.Object getObject()
getObject in interface org.apache.axiom.om.OMDataSourceExtpublic boolean isDestructiveRead()
isDestructiveRead in interface org.apache.axiom.om.OMDataSourceExtpublic boolean isDestructiveWrite()
isDestructiveWrite in interface org.apache.axiom.om.OMDataSourceExtpublic java.io.InputStream getXMLInputStream(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
getXMLInputStream in interface org.apache.axiom.om.OMDataSourceExtencoding - String encoding of InputStreamjava.io.UnsupportedEncodingExceptionpublic byte[] getXMLBytes(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
getXMLBytes in interface org.apache.axiom.om.OMDataSourceExtencoding - String encoding of InputStreamjava.io.UnsupportedEncodingExceptiongetXMLInputStreampublic void close()
close in interface org.apache.axiom.om.OMDataSourceExtpublic org.apache.axiom.om.OMDataSourceExt copy()
copy in interface org.apache.axiom.om.OMDataSourceExtpublic java.lang.Object getProperty(java.lang.String key)
getProperty in interface org.apache.axiom.om.OMDataSourceExtpublic java.lang.Object setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface org.apache.axiom.om.OMDataSourceExtpublic boolean hasProperty(java.lang.String key)
hasProperty in interface org.apache.axiom.om.OMDataSourceExtCopyright © 2004-2019 The Apache Software Foundation. All Rights Reserved.