EAF 7.4 Util

org.enhydra.xml
Class NodeListImpl

java.lang.Object
  extended by org.enhydra.xml.NodeListImpl
All Implemented Interfaces:
org.w3c.dom.NodeList

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

Version:
1.0
Author:
Tweety A class representing a node in a meta-data tree, which implements the

Namespaces are ignored in this implementation. The terms "tag name" and "node name" are always considered to be synonymous.


Constructor Summary
NodeListImpl()
          Constructs an empty NodeListImpl.
NodeListImpl(java.util.List nodes)
          Constructs NodeListImpl with the given list of nodes.
 
Method Summary
 org.w3c.dom.NodeList append(NodeListImpl list)
          Appends the given list to the end of the existing one.
 int getLength()
          Returns the count of nodes.
 org.w3c.dom.Node item(int index)
          Returns the Node with the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeListImpl

public NodeListImpl()
Constructs an empty NodeListImpl.


NodeListImpl

public NodeListImpl(java.util.List nodes)
Constructs NodeListImpl with the given list of nodes.

Parameters:
nodes - list of nodes.
Method Detail

getLength

public int getLength()
Returns the count of nodes.

Specified by:
getLength in interface org.w3c.dom.NodeList
Returns:
the count of nodes.

item

public org.w3c.dom.Node item(int index)
Returns the Node with the given index.

Specified by:
item in interface org.w3c.dom.NodeList
Parameters:
index - node index.
Returns:
the Node with the given index.

append

public org.w3c.dom.NodeList append(NodeListImpl list)
Appends the given list to the end of the existing one.

Parameters:
list - list to add, as NodeListImpl.
Returns:
this as NodeList.

EAF 7.4 Util