org.apache.cxf.aegis.xml.stax
Class ElementReader
java.lang.Object
org.apache.cxf.aegis.xml.AbstractMessageReader
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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