org.xiruss.util
Class ElementNodeList

java.lang.Object
  extended by org.xiruss.util.ElementNodeList

public class ElementNodeList
extends java.lang.Object

Convenience class for creating node lists of elements


Field Summary
(package private)  java.util.Vector nodes
           
 
Constructor Summary
ElementNodeList()
           
ElementNodeList(org.w3c.dom.NodeList w3cnl)
          Construct an ElementNodeList from a w3c NodeList.
 
Method Summary
 void add(org.w3c.dom.Element elem)
           
 void add(org.w3c.dom.Node node)
           
 int getLength()
           
 org.w3c.dom.Element item(int index)
           
 ElementIterator iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

java.util.Vector nodes
Constructor Detail

ElementNodeList

public ElementNodeList(org.w3c.dom.NodeList w3cnl)
Construct an ElementNodeList from a w3c NodeList. Note that the resulting nodelist is mutable.

Parameters:
w3cnl - org.w3c.com.NodeList instance

ElementNodeList

public ElementNodeList()
Method Detail

add

public void add(org.w3c.dom.Element elem)

add

public void add(org.w3c.dom.Node node)

item

public org.w3c.dom.Element item(int index)

iterator

public ElementIterator iterator()

size

public int size()

getLength

public int getLength()