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

Reads literal encoded messages.


Constructor Summary
ElementReader(DepthXMLStreamReader root)
           
ElementReader(InputStream is)
           
ElementReader(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)
           
 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
 

Constructor Detail

ElementReader

public ElementReader(DepthXMLStreamReader root)
Parameters:
root -

ElementReader

public ElementReader(XMLStreamReader reader)

ElementReader

public ElementReader(InputStream is)
              throws XMLStreamException
Parameters:
is -
Throws:
XMLStreamException
Method Detail

getValue

public String getValue()

getValue

public String getValue(String ns,
                       String attr)

hasMoreElementReaders

public boolean hasMoreElementReaders()

getNextElementReader

public MessageReader getNextElementReader()

getName

public QName getName()

getLocalName

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

Returns:
Local Name

getNamespace

public String getNamespace()
Returns:
Namespace

getXsiType

public QName getXsiType()

getXMLStreamReader

public XMLStreamReader getXMLStreamReader()
Specified by:
getXMLStreamReader in interface MessageReader
Overrides:
getXMLStreamReader in class AbstractMessageReader

hasMoreAttributeReaders

public boolean hasMoreAttributeReaders()

getAttributeReader

public MessageReader getAttributeReader(QName qName)

getNextAttributeReader

public MessageReader getNextAttributeReader()

getNamespaceForPrefix

public String getNamespaceForPrefix(String prefix)

Apache CXF API

Apache CXF