Class BlockImpl<T,​C>

  • All Implemented Interfaces:
    OMDataSource, OMDataSourceExt, Block<T,​C>
    Direct Known Subclasses:
    DataSourceBlockImpl, JAXBBlockImpl, OMBlockImpl, SOAPEnvelopeBlockImpl, SourceBlockImpl, XMLStringBlockImpl

    public abstract class BlockImpl<T,​C>
    extends AbstractOMDataSource
    implements Block<T,​C>
    BlockImpl Abstract Base class for various Block Implementations.

    The base class takes care of controlling the transformations between BusinessObject, XMLStreamReader and SOAPElement A derived class must minimally define the following: _getBOFromReader _getReaderFromBO _outputFromBO

    In addtion, the derived class may want to override the following: _getBOFromBO ...if the BusinessObject is consumed when read (i.e. it is an InputSource)

    The derived classes don't have direct access to the instance data. This ensures that BlockImpl controls the transformations.

    • Field Detail

      • busObject

        protected T busObject
      • busContext

        protected C busContext
      • qName

        protected QName qName
      • consumed

        protected boolean consumed
    • Constructor Detail

      • BlockImpl

        protected BlockImpl​(T busObject,
                            C busContext,
                            QName qName,
                            BlockFactory factory)
        A Block has the following components
        Parameters:
        busObject -
        busContext - or null
        qName - or null if unknown
        factory - that creates the Block
      • BlockImpl

        protected BlockImpl​(OMElement omElement,
                            C busContext,
                            QName qName,
                            BlockFactory factory)
        A Block has the following components
        Parameters:
        reader -
        busContext - or null
        qName - or null if unknown
        factory - that creates the Block