public class XMLStringBlockImpl extends BlockImpl implements XMLStringBlock
Constructor and Description |
---|
XMLStringBlockImpl(org.apache.axiom.om.OMElement omElement,
QName qName,
BlockFactory factory)
Constructor called from factory
|
Modifier and Type | Method and Description |
---|---|
protected Object |
_getBOFromOM(org.apache.axiom.om.OMElement omElement,
Object busContext)
Default method for getting business object from OM.
|
protected Object |
_getBOFromReader(XMLStreamReader reader,
Object busContext)
The derived class must provide an implementation that builds the business object from the
reader
|
protected 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,
XMLStreamWriter writer)
Output BusinessObject contents to a Writer.
|
void |
close() |
org.apache.axiom.om.OMDataSourceExt |
copy() |
Object |
getObject() |
byte[] |
getXMLBytes(String encoding) |
InputStream |
getXMLInputStream(String encoding) |
boolean |
isDestructiveRead() |
boolean |
isDestructiveWrite() |
boolean |
isElementData() |
_getBOFromBO, _getOMFromBO, _getReaderFromOM, _outputFromOM, _outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, getBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getProperty, getQName, getReader, getXMLStreamReader, hasProperty, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, serialize, serialize, setConsumed, setParent, setProperty, setQName, traceString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, setParent, traceString
public XMLStringBlockImpl(org.apache.axiom.om.OMElement omElement, QName qName, BlockFactory factory)
reader
- qName
- factory
- protected Object _getBOFromReader(XMLStreamReader reader, Object busContext) throws XMLStreamException
BlockImpl
_getBOFromReader
in class BlockImpl
reader
- XMLStreamReader, which is consumedXMLStreamException
protected Object _getBOFromOM(org.apache.axiom.om.OMElement omElement, Object busContext) throws XMLStreamException, WebServiceException
BlockImpl
_getBOFromOM
in class BlockImpl
XMLStreamException
WebServiceException
protected XMLStreamReader _getReaderFromBO(Object busObj, Object busContext) throws XMLStreamException
BlockImpl
_getReaderFromBO
in class BlockImpl
XMLStreamException
protected void _outputFromBO(Object busObject, Object busContext, XMLStreamWriter writer) throws XMLStreamException
BlockImpl
_outputFromBO
in class BlockImpl
XMLStreamException
public boolean isElementData()
isElementData
in interface Block
public void close()
close
in interface org.apache.axiom.om.OMDataSourceExt
public InputStream getXMLInputStream(String encoding) throws UnsupportedEncodingException
getXMLInputStream
in interface org.apache.axiom.om.OMDataSourceExt
UnsupportedEncodingException
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 org.apache.axiom.om.OMDataSourceExt copy() throws org.apache.axiom.om.OMException
public byte[] getXMLBytes(String encoding) throws UnsupportedEncodingException
getXMLBytes
in interface org.apache.axiom.om.OMDataSourceExt
UnsupportedEncodingException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.