public class SourceBlockImpl extends BlockImpl implements SourceBlock
| Constructor and Description |
|---|
SourceBlockImpl(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() |
byte[] |
getXMLBytes(String encoding) |
InputStream |
getXMLInputStream(String encoding) |
boolean |
isDestructiveRead() |
boolean |
isDestructiveWrite() |
boolean |
isElementData() |
_getOMFromBO, _outputFromOM, _outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, copy, getBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getProperty, getQName, getReader, getXMLStreamReader, hasProperty, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, serialize, serialize, setConsumed, setParent, setProperty, setQName, traceStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, setParent, traceStringpublic SourceBlockImpl(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
BlockImpl_getBOFromReader in class BlockImplreader - XMLStreamReader, which is consumedjavax.xml.stream.XMLStreamExceptionprotected 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.WebServiceExceptionprotected 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.