org.apache.axis2.jaxws.message.impl
Class XMLStreamReaderForXMLSpine

java.lang.Object
  extended by org.apache.axis2.jaxws.message.util.XMLStreamReaderFilter
      extended by org.apache.axis2.jaxws.message.impl.XMLStreamReaderForXMLSpine
All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader

public class XMLStreamReaderForXMLSpine
extends XMLStreamReaderFilter

XMLStreamReaderForXMLSpine

An XMLSpine is composed of many different parts: a sparse OM tree, header blocks, body blocks, etc.

The XMLStreamReaderForXMLSpine provides an XMLStreamReader that over all of these combined objects (without building a full OM tree). It does this by using a StackableXMLStreamReader for the underlying implementation and pushing the XMLStreamReaders for the blocks onto the stack at the appropriate points in the message.


Field Summary
 
Fields inherited from class org.apache.axis2.jaxws.message.util.XMLStreamReaderFilter
delegate
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
XMLStreamReaderForXMLSpine(org.apache.axiom.om.OMElement root, Protocol protocol, java.util.List<Block> headerBlocks, java.util.List<Block> bodyBlocks, java.util.List<Block> detailBlocks, boolean consume)
           
 
Method Summary
 int next()
           
 
Methods inherited from class org.apache.axis2.jaxws.message.util.XMLStreamReaderFilter
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStreamReaderForXMLSpine

public XMLStreamReaderForXMLSpine(org.apache.axiom.om.OMElement root,
                                  Protocol protocol,
                                  java.util.List<Block> headerBlocks,
                                  java.util.List<Block> bodyBlocks,
                                  java.util.List<Block> detailBlocks,
                                  boolean consume)
Parameters:
root - of the XMLSpine
headerBlocks -
bodyBocks -
detailBlocks -
consume -
Method Detail

next

public int next()
         throws javax.xml.stream.XMLStreamException
Specified by:
next in interface javax.xml.stream.XMLStreamReader
Overrides:
next in class XMLStreamReaderFilter
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.