net.beandocument
Class BeanNodeList

java.lang.Object
  extended bynet.beandocument.BeanNodeList
All Implemented Interfaces:
org.w3c.dom.NodeList

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

NodeList implementation to capture all generated nodes in the document

Author:
Jens Scheffler

Constructor Summary
protected BeanNodeList()
          Creates a new, empty NodeList implementation
 
Method Summary
protected  void add(org.w3c.dom.Node node)
          Sets a new item to the NodeList
 int getLength()
          Retrieves the length of nodes in the list
 org.w3c.dom.Node item(int index)
          Retrieves one item of the list of nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanNodeList

protected BeanNodeList()
Creates a new, empty NodeList implementation

Method Detail

getLength

public int getLength()
Retrieves the length of nodes in the list

Specified by:
getLength in interface org.w3c.dom.NodeList
Returns:
number of nodes in the list
See Also:
NodeList.getLength()

item

public org.w3c.dom.Node item(int index)
Retrieves one item of the list of nodes

Specified by:
item in interface org.w3c.dom.NodeList
Parameters:
index - Number of node to retrieve
Returns:
Selected node of the list
See Also:
NodeList.item(int)

add

protected void add(org.w3c.dom.Node node)
Sets a new item to the NodeList

Parameters:
node - Node to add to the list