org.apache.batik.dom
Class NodeListWrapper

java.lang.Object
  |
  +--org.apache.batik.dom.NodeListWrapper
All Implemented Interfaces:
NodeList

public class NodeListWrapper
extends java.lang.Object
implements NodeList

This class implements a wrapper for a NodeListWrapper. All the methods of the underlying document are called in a single thread.


Field Summary
protected  DocumentWrapper documentWrapper
          The owner document wrapper.
protected  NodeList nodeList
          The wrapped list.
 
Constructor Summary
NodeListWrapper(DocumentWrapper dw, NodeList nl)
          Creates a new NodeListWrapper.
 
Method Summary
 int getLength()
          DOM: Implements NodeList.getLength().
 Node item(int index)
          DOM: Implements NodeList.item(int).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentWrapper

protected DocumentWrapper documentWrapper
The owner document wrapper.

nodeList

protected NodeList nodeList
The wrapped list.
Constructor Detail

NodeListWrapper

public NodeListWrapper(DocumentWrapper dw,
                       NodeList nl)
Creates a new NodeListWrapper.
Method Detail

item

public Node item(int index)
DOM: Implements NodeList.item(int).
Specified by:
item in interface NodeList
Following copied from interface: org.w3c.dom.NodeList
Parameters:
indexIndex - into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

getLength

public int getLength()
DOM: Implements NodeList.getLength().
Specified by:
getLength in interface NodeList


Copyright © 2001 Apache Software Foundation. All Rights Reserved.