Package org.apache.harmony.xml.dom
Class NodeListImpl
java.lang.Object
org.apache.harmony.xml.dom.NodeListImpl
- All Implemented Interfaces:
NodeList
public class NodeListImpl extends Object implements NodeList
Provides a straightforward implementation of the corresponding W3C DOM
interface. The class is used internally only, thus only notable members that
are not in the original interface are documented (the W3C docs are quite
extensive). Hope that's ok.
Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.
-
Method Summary
-
Method Details
-
getLength
public int getLength()Description copied from interface:NodeListThe number of nodes in the list. The range of valid child node indices is 0 tolength-1inclusive. -
item
Description copied from interface:NodeListReturns theindexth item in the collection. Ifindexis greater than or equal to the number of nodes in the list, this returnsnull.
-