|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.databinding.ADBHelperDataSource<T>
public class ADBHelperDataSource<T>
| Field Summary | |
|---|---|
protected QName |
parentQName
|
| Fields inherited from interface org.apache.axiom.om.OMDataSourceExt |
|---|
LOSSY_PREFIX |
| Constructor Summary | |
|---|---|
ADBHelperDataSource(T bean,
QName parentQName,
ADBHelper<T> helper)
Constructor taking in an ADBBean |
|
| Method Summary | |
|---|---|
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)
|
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(XMLStreamWriter xmlWriter)
This needs to be generated inside the ADB bean |
Object |
setProperty(String key,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected QName parentQName
| Constructor Detail |
|---|
public ADBHelperDataSource(T bean,
QName parentQName,
ADBHelper<T> helper)
bean - | Method Detail |
|---|
public void serialize(OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
throws XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in interface org.apache.axiom.om.OMDataSourceExtoutput - format -
XMLStreamExceptionOMDataSource.serialize(java.io.OutputStream, org.apache.axiom.om.OMOutputFormat)
public void serialize(Writer writer,
org.apache.axiom.om.OMOutputFormat format)
throws XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in interface org.apache.axiom.om.OMDataSourceExtwriter - format -
XMLStreamExceptionOMDataSource.serialize(java.io.Writer, org.apache.axiom.om.OMOutputFormat)
public void serialize(XMLStreamWriter xmlWriter)
throws XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in interface org.apache.axiom.om.OMDataSourceExtxmlWriter -
XMLStreamExceptionOMDataSource.serialize(javax.xml.stream.XMLStreamWriter)
public XMLStreamReader getReader()
throws XMLStreamException
getReader in interface org.apache.axiom.om.OMDataSourcegetReader in interface org.apache.axiom.om.OMDataSourceExtXMLStreamExceptionOMDataSource.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.OMDataSourceExt
public InputStream getXMLInputStream(String encoding)
throws UnsupportedEncodingException
getXMLInputStream in interface org.apache.axiom.om.OMDataSourceExtencoding - String encoding of InputStream
UnsupportedEncodingException
public byte[] getXMLBytes(String encoding)
throws UnsupportedEncodingException
getXMLBytes in interface org.apache.axiom.om.OMDataSourceExtencoding - String encoding of InputStream
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 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.OMDataSourceExtpublic boolean hasProperty(String key)
hasProperty in interface org.apache.axiom.om.OMDataSourceExt
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||