org.stanwood.media.xml
Class IterableNodeList

java.lang.Object
  extended by org.stanwood.media.xml.IterableNodeList
All Implemented Interfaces:
java.lang.Iterable<org.w3c.dom.Node>, org.w3c.dom.NodeList

public class IterableNodeList
extends java.lang.Object
implements org.w3c.dom.NodeList, java.lang.Iterable<org.w3c.dom.Node>

This class is used to convert the NodeList into something that can be iterated


Constructor Summary
IterableNodeList(org.w3c.dom.NodeList list)
          The constructor
 
Method Summary
 int getLength()
          
 org.w3c.dom.Node item(int index)
          
 java.util.Iterator<org.w3c.dom.Node> iterator()
          Get a node iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterableNodeList

public IterableNodeList(org.w3c.dom.NodeList list)
The constructor

Parameters:
list - The node list been wrapped
Method Detail

iterator

public java.util.Iterator<org.w3c.dom.Node> iterator()
Get a node iterator

Specified by:
iterator in interface java.lang.Iterable<org.w3c.dom.Node>
Returns:
the node iterator

item

public org.w3c.dom.Node item(int index)

Specified by:
item in interface org.w3c.dom.NodeList

getLength

public int getLength()

Specified by:
getLength in interface org.w3c.dom.NodeList