public class ADBHelperDataSource<T> extends Object implements org.apache.axiom.om.OMDataSourceExt
| Modifier and Type | Field and Description |
|---|---|
protected QName |
parentQName |
| Constructor and Description |
|---|
ADBHelperDataSource(T bean,
QName parentQName,
ADBHelper<T> helper)
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() |
Object |
getObject()
Returns the backing Object.
|
Object |
getProperty(String key) |
javax.xml.stream.XMLStreamReader |
getReader() |
byte[] |
getXMLBytes(String encoding)
Returns a byte[] representing the xml data
|
InputStream |
getXMLInputStream(String encoding)
Returns a InputStream representing the xml data
|
boolean |
hasProperty(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(OutputStream output,
org.apache.axiom.om.OMOutputFormat format) |
void |
serialize(Writer writer,
org.apache.axiom.om.OMOutputFormat format) |
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
This needs to be generated inside the ADB bean
|
Object |
setProperty(String key,
Object value) |
protected QName parentQName
public void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceoutput - format - javax.xml.stream.XMLStreamExceptionOMDataSource.serialize(java.io.OutputStream, org.apache.axiom.om.OMOutputFormat)public void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourcewriter - 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.OMDataSourcexmlWriter - 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.OMDataSourcejavax.xml.stream.XMLStreamExceptionOMDataSource.getReader()public 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 InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
getXMLInputStream in interface org.apache.axiom.om.OMDataSourceExtencoding - String encoding of InputStreamUnsupportedEncodingExceptionpublic byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
getXMLBytes in interface org.apache.axiom.om.OMDataSourceExtencoding - String encoding of InputStreamUnsupportedEncodingExceptiongetXMLInputStreampublic void close()
close in interface org.apache.axiom.om.OMDataSourceExtpublic org.apache.axiom.om.OMDataSourceExt copy()
copy in interface org.apache.axiom.om.OMDataSourceExtpublic Object getProperty(String key)
getProperty in interface org.apache.axiom.om.OMDataSourceExtpublic Object setProperty(String key, Object value)
setProperty in interface org.apache.axiom.om.OMDataSourceExtpublic boolean hasProperty(String key)
hasProperty in interface org.apache.axiom.om.OMDataSourceExtCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.