org.codehaus.xfire.message.stax
Class ElementReader

java.lang.Object
  extended by org.codehaus.xfire.message.AbstractMessageReader
      extended by org.codehaus.xfire.message.stax.ElementReader
All Implemented Interfaces:
MessageReader

public class ElementReader
extends AbstractMessageReader
implements MessageReader

Reads literal encoded messages.

Author:
Dan Diephouse

Constructor Summary
ElementReader(DepthXMLStreamReader root)
          Expects the XMLStreamReader in the START_DOCUMENT event.
ElementReader(java.io.InputStream is)
           
ElementReader(javax.xml.stream.XMLStreamReader reader)
           
 
Method Summary
 java.lang.String getLocalName()
          Get the local name of the element this reader represents.
 javax.xml.namespace.QName getName()
           
 java.lang.String getNamespace()
           
 MessageReader getNextAttributeReader()
           
 MessageReader getNextElementReader()
           
 java.lang.String getValue()
           
 java.lang.String getValue(java.lang.String ns, java.lang.String attr)
           
 javax.xml.stream.XMLStreamReader getXMLStreamReader()
           
 boolean hasMoreAttributeReaders()
           
 boolean hasMoreElementReaders()
           
 
Methods inherited from class org.codehaus.xfire.message.AbstractMessageReader
getValueAsBoolean, getValueAsCalendar, getValueAsDate, getValueAsDateTime, getValueAsDouble, getValueAsFloat, getValueAsInt, getValueAsLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.xfire.message.MessageReader
getValueAsBoolean, getValueAsCalendar, getValueAsDate, getValueAsDateTime, getValueAsDouble, getValueAsFloat, getValueAsInt, getValueAsLong
 

Constructor Detail

ElementReader

public ElementReader(DepthXMLStreamReader root)
Expects the XMLStreamReader in the START_DOCUMENT event.

Parameters:
root -

ElementReader

public ElementReader(javax.xml.stream.XMLStreamReader reader)

ElementReader

public ElementReader(java.io.InputStream is)
              throws javax.xml.stream.XMLStreamException
Parameters:
resourceAsStream -
Throws:
javax.xml.stream.XMLStreamException
Method Detail

getValue

public java.lang.String getValue()
Specified by:
getValue in interface MessageReader
See Also:
MessageReader.getValue()

getValue

public java.lang.String getValue(java.lang.String ns,
                                 java.lang.String attr)

hasMoreElementReaders

public boolean hasMoreElementReaders()
Specified by:
hasMoreElementReaders in interface MessageReader

getNextElementReader

public MessageReader getNextElementReader()
Specified by:
getNextElementReader in interface MessageReader

getName

public javax.xml.namespace.QName getName()
Specified by:
getName in interface MessageReader

getLocalName

public java.lang.String getLocalName()
Description copied from interface: MessageReader
Get the local name of the element this reader represents.

Specified by:
getLocalName in interface MessageReader
Returns:

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface MessageReader
Returns:

getXMLStreamReader

public javax.xml.stream.XMLStreamReader getXMLStreamReader()

hasMoreAttributeReaders

public boolean hasMoreAttributeReaders()
Specified by:
hasMoreAttributeReaders in interface MessageReader

getNextAttributeReader

public MessageReader getNextAttributeReader()
Specified by:
getNextAttributeReader in interface MessageReader