org.apache.tuscany.sca.databinding.xml
Class WrappingXMLStreamReader

java.lang.Object
  extended by javax.xml.stream.util.StreamReaderDelegate
      extended by org.apache.tuscany.sca.databinding.xml.WrappingXMLStreamReader
All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader, XMLFragmentStreamReader

public class WrappingXMLStreamReader
extends javax.xml.stream.util.StreamReaderDelegate
implements XMLFragmentStreamReader


Field Summary
 
Fields inherited from interface org.apache.tuscany.sca.databinding.xml.XMLFragmentStreamReader
ELEMENT_TEXT, NIL_QNAME, NIL_VALUE_TRUE
 
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
WrappingXMLStreamReader(javax.xml.stream.XMLStreamReader realReader)
           
 
Method Summary
 boolean hasNext()
           
 void init()
          Initiate the parser - this will do whatever the needed tasks to initiate the parser and must be called before attempting any specific parsing using this parser
 boolean isDone()
          Extra method to query the state of the pullparser
 int next()
           
 int nextTag()
           
 void setParentNamespaceContext(javax.xml.namespace.NamespaceContext nsContext)
          add the parent namespace context to this parser
 
Methods inherited from class javax.xml.stream.util.StreamReaderDelegate
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, require, setParent, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.XMLStreamReader
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, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, require, standaloneSet
 

Constructor Detail

WrappingXMLStreamReader

public WrappingXMLStreamReader(javax.xml.stream.XMLStreamReader realReader)
                        throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException
Method Detail

hasNext

public boolean hasNext()
                throws javax.xml.stream.XMLStreamException
Specified by:
hasNext in interface javax.xml.stream.XMLStreamReader
Overrides:
hasNext in class javax.xml.stream.util.StreamReaderDelegate
Throws:
javax.xml.stream.XMLStreamException

next

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

nextTag

public int nextTag()
            throws javax.xml.stream.XMLStreamException
Specified by:
nextTag in interface javax.xml.stream.XMLStreamReader
Overrides:
nextTag in class javax.xml.stream.util.StreamReaderDelegate
Throws:
javax.xml.stream.XMLStreamException

setParentNamespaceContext

public void setParentNamespaceContext(javax.xml.namespace.NamespaceContext nsContext)
Description copied from interface: XMLFragmentStreamReader
add the parent namespace context to this parser

Specified by:
setParentNamespaceContext in interface XMLFragmentStreamReader

init

public void init()
Description copied from interface: XMLFragmentStreamReader
Initiate the parser - this will do whatever the needed tasks to initiate the parser and must be called before attempting any specific parsing using this parser

Specified by:
init in interface XMLFragmentStreamReader

isDone

public boolean isDone()
Description copied from interface: XMLFragmentStreamReader
Extra method to query the state of the pullparser

Specified by:
isDone in interface XMLFragmentStreamReader