net.sf.zekr.engine.xml
Class NodeList

java.lang.Object
  extended by net.sf.zekr.engine.xml.NodeList
All Implemented Interfaces:
org.w3c.dom.NodeList

public class NodeList
extends java.lang.Object
implements org.w3c.dom.NodeList

This class is an implementation of NodeList using an ArrayList as the low level container.

Since:
Zekr 1.0
Version:
0.1
Author:
Mohsen Saboorian

Constructor Summary
NodeList()
           
NodeList(org.w3c.dom.NodeList nodeList)
           
 
Method Summary
 void add(org.w3c.dom.Node node)
           
 void add(NodeList nodes)
           
 void deleteAll()
           
 int getLength()
           
 org.w3c.dom.Node item(int index)
           
 java.util.Iterator iterator()
           
 void remove(org.w3c.dom.Node node)
           
 int size()
           
 java.lang.String toString()
          Returns a string representation of this NodeList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList(org.w3c.dom.NodeList nodeList)

NodeList

public NodeList()
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.NodeList

item

public org.w3c.dom.Node item(int index)
Specified by:
item in interface org.w3c.dom.NodeList

toString

public java.lang.String toString()
Returns a string representation of this NodeList. Here is an example:
if NodeList contains 3 objects o1, o2, and o3, the toString() result should be something like this:
[{o3}, {o2}, {o3}]
where {x} means String.valueOf(x).

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this collection.

add

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

remove

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

size

public int size()

iterator

public java.util.Iterator iterator()

add

public void add(NodeList nodes)

deleteAll

public void deleteAll()