Class JAXBBlockImpl
java.lang.Object
org.apache.axiom.om.ds.AbstractOMDataSource
org.apache.axis2.jaxws.message.impl.BlockImpl<Object,JAXBBlockContext>
org.apache.axis2.jaxws.message.databinding.impl.JAXBBlockImpl
- All Implemented Interfaces:
org.apache.axiom.om.OMDataSource,org.apache.axiom.om.OMDataSourceExt,Block<Object,,JAXBBlockContext> JAXBBlock
JAXBBlockImpl A Block containing a JAXB business object (either a JAXBElement or an object
with @XmlRootElement).
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object_getBOFromOM(org.apache.axiom.om.OMElement omElement, JAXBBlockContext busContext) Default method for getting business object from OM.protected XMLStreamReader_getReaderFromBO(Object busObj, JAXBBlockContext busContext) Get an XMLStreamReader for the BusinessObject The derived Block must implement this methodprotected void_outputFromBO(Object busObject, JAXBBlockContext busContext, XMLStreamWriter writer) Output BusinessObject contents to a Writer.voidclose()org.apache.axiom.om.OMDataSourceExtcopy()booleanbooleanbooleanvoidSet the Message associated with this block (This method is intended to be called by the Message Implementation only)Methods inherited from class org.apache.axis2.jaxws.message.impl.BlockImpl
_getBOFromBO, _getOMFromBO, _outputFromOM, _outputFromReader, _postPivot_getXMLStreamReader, _postPivot_outputTo, getBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getQName, getReader, getXMLStreamReader, isBusinessObject, isConsumed, isQNameAvailable, outputTo, serialize, setConsumed, setQName, traceStringMethods inherited from class org.apache.axiom.om.ds.AbstractOMDataSource
getProperty, getXMLBytes, getXMLInputStream, hasProperty, serialize, serialize, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.axis2.jaxws.message.Block
getBlockFactory, getBusinessContext, getBusinessObject, getOMElement, getParent, getQName, getXMLStreamReader, isConsumed, isQNameAvailable, outputTo, traceStringMethods inherited from interface org.apache.axiom.om.OMDataSource
getReader, serialize, serialize, serializeMethods inherited from interface org.apache.axiom.om.OMDataSourceExt
getProperty, getXMLBytes, getXMLInputStream, hasProperty, setProperty
-
Method Details
-
_getBOFromOM
protected Object _getBOFromOM(org.apache.axiom.om.OMElement omElement, JAXBBlockContext busContext) throws XMLStreamException, jakarta.xml.ws.WebServiceException Description copied from class:BlockImplDefault method for getting business object from OM. Derived classes may override this method to get the business object from a data source.- Specified by:
_getBOFromOMin classBlockImpl<Object,JAXBBlockContext> - Returns:
- Business Object
- Throws:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
_getReaderFromBO
protected XMLStreamReader _getReaderFromBO(Object busObj, JAXBBlockContext busContext) throws XMLStreamException, jakarta.xml.ws.WebServiceException Description copied from class:BlockImplGet an XMLStreamReader for the BusinessObject The derived Block must implement this method- Specified by:
_getReaderFromBOin classBlockImpl<Object,JAXBBlockContext> - Returns:
- Throws:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
_outputFromBO
protected void _outputFromBO(Object busObject, JAXBBlockContext busContext, XMLStreamWriter writer) throws XMLStreamException, jakarta.xml.ws.WebServiceException Description copied from class:BlockImplOutput BusinessObject contents to a Writer. Derived classes must provide this implementation- Specified by:
_outputFromBOin classBlockImpl<Object,JAXBBlockContext> - Throws:
XMLStreamExceptionjakarta.xml.ws.WebServiceException
-
isElementData
public boolean isElementData()- Specified by:
isElementDatain interfaceBlock<Object,JAXBBlockContext> - Returns:
- true if data is always an element; false if possibly mixed content or multiple elements
-
close
public void close()- Specified by:
closein interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
closein classorg.apache.axiom.om.ds.AbstractOMDataSource
-
getObject
- Specified by:
getObjectin interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
getObjectin classorg.apache.axiom.om.ds.AbstractOMDataSource
-
isDestructiveRead
public boolean isDestructiveRead()- Specified by:
isDestructiveReadin interfaceorg.apache.axiom.om.OMDataSourceExt
-
isDestructiveWrite
public boolean isDestructiveWrite()- Specified by:
isDestructiveWritein interfaceorg.apache.axiom.om.OMDataSourceExt
-
copy
public org.apache.axiom.om.OMDataSourceExt copy() throws org.apache.axiom.om.OMException- Specified by:
copyin interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
copyin classBlockImpl<Object,JAXBBlockContext> - Throws:
org.apache.axiom.om.OMException
-
setParent
Description copied from interface:BlockSet the Message associated with this block (This method is intended to be called by the Message Implementation only)- Specified by:
setParentin interfaceBlock<Object,JAXBBlockContext> - Overrides:
setParentin classBlockImpl<Object,JAXBBlockContext>
-