org.apache.batik.dom
Class AbstractParentNode.Nodes

java.lang.Object
  |
  +--org.apache.batik.dom.AbstractParentNode.Nodes
All Implemented Interfaces:
NodeList
Enclosing class:
AbstractParentNode

protected static class AbstractParentNode.Nodes
extends java.lang.Object
implements NodeList

To manage a list of nodes.


Field Summary
protected  int size
          The number of nodes.
protected  Node[] table
          The table.
 
Constructor Summary
AbstractParentNode.Nodes()
          Creates a new Nodes object.
 
Method Summary
 void append(Node n)
          Appends a node to the list.
 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

table

protected Node[] table
The table.

size

protected int size
The number of nodes.
Constructor Detail

AbstractParentNode.Nodes

public AbstractParentNode.Nodes()
Creates a new Nodes object.
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
Returns:
size.

append

public void append(Node n)
Appends a node to the list.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.