com.nwoods.jgo
Interface DomList

All Known Implementing Classes:
DefaultList

public interface DomList

An interface similar to org.w3c.dom.NodeList used for SVG XML serialization.

This interface allows the com.nwoods.jgo package to provide methods that manipulate org.w3c.dom.NodeList objects while not requiring the org.w3c.dom.NodeList class to be present in order to build com.nwoods.jgo.


Method Summary
 int getLength()
          The number of nodes in the list.
 DomNode item(int index)
          Returns the indexth item in the collection.
 

Method Detail

getLength

public int getLength()
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive

Returns:
the number of nodes in the list.

item

public DomNode item(int index)
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Returns:
the indexth item in the collection.