com.thoughtworks.xstream.xml.dom
Class DomXMLReader

java.lang.Object
  |
  +--com.thoughtworks.xstream.xml.dom.DomXMLReader
All Implemented Interfaces:
XMLReader

public class DomXMLReader
extends java.lang.Object
implements XMLReader


Constructor Summary
DomXMLReader(org.w3c.dom.Document document)
           
DomXMLReader(org.w3c.dom.Element rootElement)
           
 
Method Summary
 java.lang.String attribute(java.lang.String name)
           
 void child(int index)
           
 void child(java.lang.String elementName)
           
 int childCount()
           
 boolean childExists(java.lang.String elementName)
           
 java.lang.String name()
           
 void pop()
           
 java.lang.String text()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomXMLReader

public DomXMLReader(org.w3c.dom.Element rootElement)

DomXMLReader

public DomXMLReader(org.w3c.dom.Document document)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface XMLReader

text

public java.lang.String text()
Specified by:
text in interface XMLReader

attribute

public java.lang.String attribute(java.lang.String name)
Specified by:
attribute in interface XMLReader

childCount

public int childCount()
Specified by:
childCount in interface XMLReader

child

public void child(int index)
Specified by:
child in interface XMLReader

child

public void child(java.lang.String elementName)
Specified by:
child in interface XMLReader

pop

public void pop()
Specified by:
pop in interface XMLReader

childExists

public boolean childExists(java.lang.String elementName)
Specified by:
childExists in interface XMLReader


Copyright © 2003 ThoughtWorks, Inc. All Rights Reserved.