org.codehaus.xfire.util.stax
Class W3CDOMStreamReader
java.lang.Object
org.codehaus.xfire.util.stax.DOMStreamReader
org.codehaus.xfire.util.stax.W3CDOMStreamReader
- All Implemented Interfaces:
- javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader
public class W3CDOMStreamReader
- extends DOMStreamReader
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 |
Methods inherited from class org.codehaus.xfire.util.stax.DOMStreamReader |
close, getCharacterEncodingScheme, getCurrentFrame, getEventType, getLocation, getProperty, getTextCharacters, getVersion, hasName, hasNext, hasText, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
W3CDOMStreamReader
public W3CDOMStreamReader(Element element)
- Parameters:
element
-
getDocument
public Document getDocument()
- Get the document associated with this stream.
- Returns:
newFrame
protected void newFrame(DOMStreamReader.ElementFrame frame)
- Find name spaces declaration in atrributes and move them to separate collection.
- Overrides:
newFrame
in class DOMStreamReader
endElement
protected void endElement()
- Overrides:
endElement
in class DOMStreamReader
getChildFrame
protected DOMStreamReader.ElementFrame getChildFrame(int currentChild)
- Specified by:
getChildFrame
in class DOMStreamReader
getChildCount
protected int getChildCount()
- Specified by:
getChildCount
in class DOMStreamReader
moveToChild
protected int moveToChild(int currentChild)
- Specified by:
moveToChild
in class DOMStreamReader
getElementText
public String getElementText()
throws javax.xml.stream.XMLStreamException
- Specified by:
getElementText
in interface javax.xml.stream.XMLStreamReader
- Specified by:
getElementText
in class DOMStreamReader
- Throws:
javax.xml.stream.XMLStreamException
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface javax.xml.stream.XMLStreamReader
- Specified by:
getNamespaceURI
in class DOMStreamReader
getAttributeValue
public String getAttributeValue(String ns,
String local)
getAttributeCount
public int getAttributeCount()
getAttributeName
public QName getAttributeName(int i)
getAttributeNamespace
public String getAttributeNamespace(int i)
getAttributeLocalName
public String getAttributeLocalName(int i)
getAttributePrefix
public String getAttributePrefix(int i)
getAttributeType
public String getAttributeType(int i)
toStaxType
public static String toStaxType(short jdom)
getAttributeValue
public String getAttributeValue(int i)
isAttributeSpecified
public boolean isAttributeSpecified(int i)
getNamespaceCount
public int getNamespaceCount()
getNamespacePrefix
public String getNamespacePrefix(int i)
getNamespaceURI
public String getNamespaceURI(int i)
getNamespaceContext
public NamespaceContext getNamespaceContext()
getText
public String getText()
getTextCharacters
public char[] getTextCharacters()
getTextStart
public int getTextStart()
getTextLength
public int getTextLength()
getEncoding
public String getEncoding()
getName
public QName getName()
getLocalName
public String getLocalName()
getNamespaceURI
public String getNamespaceURI()
getPrefix
public String getPrefix()
getPITarget
public String getPITarget()
getPIData
public String getPIData()
Copyright © 2004-2013. All Rights Reserved.