Apache CXF API

org.apache.cxf.aegis.xml.stax
Class ElementReader

java.lang.Object
  extended by org.apache.cxf.aegis.xml.AbstractMessageReader
      extended by org.apache.cxf.aegis.xml.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)
           
ElementReader(InputStream is)
           
ElementReader(javax.xml.stream.XMLStreamReader reader)
           
 
Method Summary
 MessageReader getAttributeReader(QName qName)
           
 String getLocalName()
          Get the local name of the element this reader represents.
 QName getName()
           
 String getNamespace()
           
 String getNamespaceForPrefix(String prefix)
           
 MessageReader getNextAttributeReader()
           
 MessageReader getNextElementReader()
           
 String getValue()
           
 String getValue(String ns, String attr)
           
 javax.xml.stream.XMLStreamReader getXMLStreamReader()
           
 QName getXsiType()
           
 boolean hasMoreAttributeReaders()
           
 boolean hasMoreElementReaders()
           
 
Methods inherited from class org.apache.cxf.aegis.xml.AbstractMessageReader
getValueAsBoolean, getValueAsCharacter, getValueAsDouble, getValueAsFloat, getValueAsInt, getValueAsLong, hasValue, isXsiNil, readToEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.aegis.xml.MessageReader
getValueAsBoolean, getValueAsCharacter, getValueAsDouble, getValueAsFloat, getValueAsInt, getValueAsLong, isXsiNil, readToEnd
 

Constructor Detail

ElementReader

public ElementReader(DepthXMLStreamReader root)
Parameters:
root -

ElementReader

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

ElementReader

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

getValue

public String getValue()
Specified by:
getValue in interface MessageReader

getValue

public String getValue(String ns,
                       String attr)

hasMoreElementReaders

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

getNextElementReader

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

getName

public QName getName()
Specified by:
getName in interface MessageReader

getLocalName

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

Specified by:
getLocalName in interface MessageReader
Returns:
Local Name

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface MessageReader
Returns:
Namespace

getXsiType

public QName getXsiType()

getXMLStreamReader

public javax.xml.stream.XMLStreamReader getXMLStreamReader()
Specified by:
getXMLStreamReader in interface MessageReader
Overrides:
getXMLStreamReader in class AbstractMessageReader

hasMoreAttributeReaders

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

getAttributeReader

public MessageReader getAttributeReader(QName qName)
Specified by:
getAttributeReader in interface MessageReader

getNextAttributeReader

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

getNamespaceForPrefix

public String getNamespaceForPrefix(String prefix)
Specified by:
getNamespaceForPrefix in interface MessageReader

Apache CXF API

Apache CXF