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.OMDataSource
serialize
in interface org.apache.axiom.om.OMDataSourceExt
output
- format
- javax.xml.stream.XMLStreamException
OMDataSource.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.OMDataSource
serialize
in interface org.apache.axiom.om.OMDataSourceExt
writer
- format
- javax.xml.stream.XMLStreamException
OMDataSource.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.OMDataSource
serialize
in interface org.apache.axiom.om.OMDataSourceExt
xmlWriter
- javax.xml.stream.XMLStreamException
OMDataSource.serialize(javax.xml.stream.XMLStreamWriter)
public javax.xml.stream.XMLStreamReader getReader() throws javax.xml.stream.XMLStreamException
getReader
in interface org.apache.axiom.om.OMDataSource
getReader
in interface org.apache.axiom.om.OMDataSourceExt
javax.xml.stream.XMLStreamException
OMDataSource.getReader()
public Object getObject()
getObject
in interface org.apache.axiom.om.OMDataSourceExt
public boolean isDestructiveRead()
isDestructiveRead
in interface org.apache.axiom.om.OMDataSourceExt
public boolean isDestructiveWrite()
isDestructiveWrite
in interface org.apache.axiom.om.OMDataSourceExt
public InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
getXMLInputStream
in interface org.apache.axiom.om.OMDataSourceExt
encoding
- String encoding of InputStreamUnsupportedEncodingException
public byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
getXMLBytes
in interface org.apache.axiom.om.OMDataSourceExt
encoding
- String encoding of InputStreamUnsupportedEncodingException
getXMLInputStream
public void close()
close
in interface org.apache.axiom.om.OMDataSourceExt
public org.apache.axiom.om.OMDataSourceExt copy()
copy
in interface org.apache.axiom.om.OMDataSourceExt
public Object getProperty(String key)
getProperty
in interface org.apache.axiom.om.OMDataSourceExt
public Object setProperty(String key, Object value)
setProperty
in interface org.apache.axiom.om.OMDataSourceExt
public boolean hasProperty(String key)
hasProperty
in interface org.apache.axiom.om.OMDataSourceExt
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.