public class DataSourceBlockImpl extends BlockImpl implements DataSourceBlock
| Constructor and Description |
|---|
DataSourceBlockImpl(org.apache.axiom.om.OMElement omElement,
javax.xml.namespace.QName qName,
BlockFactory factory)
Constructor called from factory
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
_getBOFromBO(java.lang.Object busObject,
java.lang.Object busContext,
boolean consume)
The default implementation is to return the business object.
|
protected java.lang.Object |
_getBOFromOM(org.apache.axiom.om.OMElement omElement,
java.lang.Object busContext)
Default method for getting business object from OM.
|
protected java.lang.Object |
_getBOFromReader(javax.xml.stream.XMLStreamReader reader,
java.lang.Object busContext)
The derived class must provide an implementation that builds the business object from the
reader
|
protected javax.xml.stream.XMLStreamReader |
_getReaderFromBO(java.lang.Object busObj,
java.lang.Object busContext)
Get an XMLStreamReader for the BusinessObject The derived Block must implement this method
|
protected void |
_outputFromBO(java.lang.Object busObject,
java.lang.Object busContext,
javax.xml.stream.XMLStreamWriter writer)
Output BusinessObject contents to a Writer.
|
void |
close() |
java.lang.Object |
getObject() |
org.apache.axiom.om.OMElement |
getOMElement()
Get the OMElement represented by this Block.
|
byte[] |
getXMLBytes(java.lang.String encoding) |
java.io.InputStream |
getXMLInputStream(java.lang.String encoding) |
boolean |
isDestructiveRead() |
boolean |
isDestructiveWrite() |
boolean |
isElementData() |
void |
serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format) |
_getOMFromBO, _getReaderFromOM, _outputFromOM, _outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, copy, getBlockFactory, getBusinessContext, getBusinessObject, getParent, getProperty, getQName, getReader, getXMLStreamReader, hasProperty, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, serialize, setConsumed, setParent, setProperty, setQName, traceStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockFactory, getBusinessContext, getBusinessObject, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, setParent, traceStringpublic DataSourceBlockImpl(org.apache.axiom.om.OMElement omElement,
javax.xml.namespace.QName qName,
BlockFactory factory)
reader - qName - factory - protected java.lang.Object _getBOFromReader(javax.xml.stream.XMLStreamReader reader,
java.lang.Object busContext)
throws javax.xml.stream.XMLStreamException,
javax.xml.ws.WebServiceException
BlockImpl_getBOFromReader in class BlockImplreader - XMLStreamReader, which is consumedjavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic org.apache.axiom.om.OMElement getOMElement()
throws javax.xml.stream.XMLStreamException,
javax.xml.ws.WebServiceException
BlockgetOMElement in interface BlockgetOMElement in class BlockImpljavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionprotected java.lang.Object _getBOFromOM(org.apache.axiom.om.OMElement omElement,
java.lang.Object busContext)
throws javax.xml.stream.XMLStreamException,
javax.xml.ws.WebServiceException
BlockImpl_getBOFromOM in class BlockImpljavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionprotected javax.xml.stream.XMLStreamReader _getReaderFromBO(java.lang.Object busObj,
java.lang.Object busContext)
throws javax.xml.stream.XMLStreamException,
javax.xml.ws.WebServiceException
BlockImpl_getReaderFromBO in class BlockImpljavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic void serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
protected void _outputFromBO(java.lang.Object busObject,
java.lang.Object busContext,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException,
javax.xml.ws.WebServiceException
BlockImpl_outputFromBO in class BlockImpljavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionprotected java.lang.Object _getBOFromBO(java.lang.Object busObject,
java.lang.Object busContext,
boolean consume)
BlockImpl_getBOFromBO in class BlockImplpublic boolean isElementData()
isElementData in interface Blockpublic void close()
close 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.OMDataSourceExtjava.io.UnsupportedEncodingExceptionpublic 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 byte[] getXMLBytes(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
getXMLBytes in interface org.apache.axiom.om.OMDataSourceExtjava.io.UnsupportedEncodingExceptionCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.