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

public class JAXBBlockImpl extends BlockImpl<Object,JAXBBlockContext> implements JAXBBlock
JAXBBlockImpl

A Block containing a JAXB business object (either a JAXBElement or an object with @XmlRootElement).

  • Method Details

    • _getBOFromOM

      protected Object _getBOFromOM(org.apache.axiom.om.OMElement omElement, JAXBBlockContext busContext) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      Description copied from class: BlockImpl
      Default method for getting business object from OM. Derived classes may override this method to get the business object from a data source.
      Specified by:
      _getBOFromOM in class BlockImpl<Object,JAXBBlockContext>
      Returns:
      Business Object
      Throws:
      XMLStreamException
      jakarta.xml.ws.WebServiceException
    • _getReaderFromBO

      protected XMLStreamReader _getReaderFromBO(Object busObj, JAXBBlockContext busContext) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      Description copied from class: BlockImpl
      Get an XMLStreamReader for the BusinessObject The derived Block must implement this method
      Specified by:
      _getReaderFromBO in class BlockImpl<Object,JAXBBlockContext>
      Returns:
      Throws:
      XMLStreamException
      jakarta.xml.ws.WebServiceException
    • _outputFromBO

      protected void _outputFromBO(Object busObject, JAXBBlockContext busContext, XMLStreamWriter writer) throws XMLStreamException, jakarta.xml.ws.WebServiceException
      Description copied from class: BlockImpl
      Output BusinessObject contents to a Writer. Derived classes must provide this implementation
      Specified by:
      _outputFromBO in class BlockImpl<Object,JAXBBlockContext>
      Throws:
      XMLStreamException
      jakarta.xml.ws.WebServiceException
    • isElementData

      public boolean isElementData()
      Specified by:
      isElementData in interface Block<Object,JAXBBlockContext>
      Returns:
      true if data is always an element; false if possibly mixed content or multiple elements
    • close

      public void close()
      Specified by:
      close in interface org.apache.axiom.om.OMDataSourceExt
      Overrides:
      close in class org.apache.axiom.om.ds.AbstractOMDataSource
    • getObject

      public Object getObject()
      Specified by:
      getObject in interface org.apache.axiom.om.OMDataSourceExt
      Overrides:
      getObject in class org.apache.axiom.om.ds.AbstractOMDataSource
    • isDestructiveRead

      public boolean isDestructiveRead()
      Specified by:
      isDestructiveRead in interface org.apache.axiom.om.OMDataSourceExt
    • isDestructiveWrite

      public boolean isDestructiveWrite()
      Specified by:
      isDestructiveWrite in interface org.apache.axiom.om.OMDataSourceExt
    • copy

      public org.apache.axiom.om.OMDataSourceExt copy() throws org.apache.axiom.om.OMException
      Specified by:
      copy in interface org.apache.axiom.om.OMDataSourceExt
      Overrides:
      copy in class BlockImpl<Object,JAXBBlockContext>
      Throws:
      org.apache.axiom.om.OMException
    • setParent

      public void setParent(Message message)
      Description copied from interface: Block
      Set the Message associated with this block (This method is intended to be called by the Message Implementation only)
      Specified by:
      setParent in interface Block<Object,JAXBBlockContext>
      Overrides:
      setParent in class BlockImpl<Object,JAXBBlockContext>