org.codehaus.xfire.util.stax
Class DOMStreamReader
java.lang.Object
org.codehaus.xfire.util.stax.DOMStreamReader
- Direct Known Subclasses:
- JDOMStreamReader, W3CDOMStreamReader
public abstract class DOMStreamReader
- extends java.lang.Object
Abstract logic for creating XMLStreamReader from DOM documents.
Its works using adapters for Element, Node and Attribute ( @see ElementAdapter }
- Author:
- Tomasz Sztelak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
public java.util.Map properties
DOMStreamReader
public DOMStreamReader(DOMStreamReader.ElementFrame frame)
- Parameters:
element
-
getCurrentFrame
protected DOMStreamReader.ElementFrame getCurrentFrame()
getProperty
public java.lang.Object getProperty(java.lang.String key)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
next
public int next()
throws XMLStreamException
- Throws:
XMLStreamException
newFrame
protected void newFrame(DOMStreamReader.ElementFrame newFrame)
endElement
protected void endElement()
moveToChild
protected abstract int moveToChild(int currentChild)
getChildFrame
protected abstract DOMStreamReader.ElementFrame getChildFrame(int currentChild)
getChildCount
protected abstract int getChildCount()
require
public void require(int arg0,
java.lang.String arg1,
java.lang.String arg2)
throws XMLStreamException
- Throws:
XMLStreamException
getElementText
public abstract java.lang.String getElementText()
throws XMLStreamException
- Throws:
XMLStreamException
nextTag
public int nextTag()
throws XMLStreamException
- Throws:
XMLStreamException
hasNext
public boolean hasNext()
throws XMLStreamException
- Throws:
XMLStreamException
close
public void close()
throws XMLStreamException
- Throws:
XMLStreamException
getNamespaceURI
public abstract java.lang.String getNamespaceURI(java.lang.String prefix)
isStartElement
public boolean isStartElement()
isEndElement
public boolean isEndElement()
isCharacters
public boolean isCharacters()
isWhiteSpace
public boolean isWhiteSpace()
getEventType
public int getEventType()
getTextCharacters
public int getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length)
throws XMLStreamException
- Throws:
XMLStreamException
hasText
public boolean hasText()
getLocation
public Location getLocation()
hasName
public boolean hasName()
getVersion
public java.lang.String getVersion()
isStandalone
public boolean isStandalone()
standaloneSet
public boolean standaloneSet()
getCharacterEncodingScheme
public java.lang.String getCharacterEncodingScheme()
Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.