Class DOMUtil.NodeListImpl
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- java.util.Vector<org.w3c.dom.Node>
- 
- org.apache.tools.ant.taskdefs.optional.junit.DOMUtil.NodeListImpl
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable<org.w3c.dom.Node>,- java.util.Collection<org.w3c.dom.Node>,- java.util.List<org.w3c.dom.Node>,- java.util.RandomAccess,- org.w3c.dom.NodeList
 - Enclosing class:
- DOMUtil
 
 public static class DOMUtil.NodeListImpl extends java.util.Vector<org.w3c.dom.Node> implements org.w3c.dom.NodeListcustom implementation of a nodelist- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NodeListImpl()
 - 
Method Summary- 
Methods inherited from class java.util.Vectoradd, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
 
- 
 
- 
- 
- 
Method Detail- 
getLengthpublic int getLength() Get the number of nodes in the list.- Specified by:
- getLengthin interface- org.w3c.dom.NodeList
- Returns:
- the length of the list.
 
 - 
itempublic org.w3c.dom.Node item(int i) Get a particular node.- Specified by:
- itemin interface- org.w3c.dom.NodeList
- Parameters:
- i- the index of the node to get.
- Returns:
- the node if the index is in bounds, null otherwise.
 
 
- 
 
-