public class DataSourceBlockImpl extends BlockImpl implements DataSourceBlock
| Constructor and Description |
|---|
DataSourceBlockImpl(org.apache.axiom.om.OMElement omElement,
QName qName,
BlockFactory factory)
Constructor called from factory
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_getBOFromBO(Object busObject,
Object busContext,
boolean consume)
The default implementation is to return the business object.
|
protected Object |
_getBOFromOM(org.apache.axiom.om.OMElement omElement,
Object busContext)
Default method for getting business object from OM.
|
protected Object |
_getBOFromReader(javax.xml.stream.XMLStreamReader reader,
Object busContext)
The derived class must provide an implementation that builds the business object from the
reader
|
protected javax.xml.stream.XMLStreamReader |
_getReaderFromBO(Object busObj,
Object busContext)
Get an XMLStreamReader for the BusinessObject The derived Block must implement this method
|
protected void |
_outputFromBO(Object busObject,
Object busContext,
javax.xml.stream.XMLStreamWriter writer)
Output BusinessObject contents to a Writer.
|
void |
close() |
Object |
getObject() |
org.apache.axiom.om.OMElement |
getOMElement()
Get the OMElement represented by this Block.
|
byte[] |
getXMLBytes(String encoding) |
InputStream |
getXMLInputStream(String encoding) |
boolean |
isDestructiveRead() |
boolean |
isDestructiveWrite() |
boolean |
isElementData() |
void |
serialize(OutputStream output,
org.apache.axiom.om.OMOutputFormat format) |
_getOMFromBO, _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,
QName qName,
BlockFactory factory)
reader - qName - factory - protected Object _getBOFromReader(javax.xml.stream.XMLStreamReader reader, 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 Object _getBOFromOM(org.apache.axiom.om.OMElement omElement, 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(Object busObj, Object busContext) throws javax.xml.stream.XMLStreamException, javax.xml.ws.WebServiceException
BlockImpl_getReaderFromBO in class BlockImpljavax.xml.stream.XMLStreamExceptionjavax.xml.ws.WebServiceExceptionpublic void serialize(OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceserialize in class BlockImpljavax.xml.stream.XMLStreamExceptionprotected void _outputFromBO(Object busObject, 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 Object _getBOFromBO(Object busObject, 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 InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
getXMLInputStream in interface org.apache.axiom.om.OMDataSourceExtUnsupportedEncodingExceptionpublic 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(String encoding) throws UnsupportedEncodingException
getXMLBytes in interface org.apache.axiom.om.OMDataSourceExtUnsupportedEncodingExceptionCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.