2005/5/9

     
 

class NodeList

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

org::w3c::dom::NodeList Class Reference

#include <NodeList.h>

Inheritance diagram for org::w3c::dom::NodeList:

acdk::xml::dom::NodeArrayList acdk::xml::dom::XMLNodeList acdk::xml::libxmldom::LibXMLNodeList acdk::xml::libxmldom::LibXMLPathNodeList org::w3c::dom::xpath::XPathResultNodeList List of all members.

Detailed Description

The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.

NodeList objects in the DOM are live.

The items in the NodeList are accessible via an integral index, starting from 0.

See also the Document acdk::lang::Object Model (DOM) Level 3 Core Specification.

Author:
Roger Rene Kommer
Version:
Revision
1.12
Date:
Date
2005/02/05 10:45:37


Public Member Functions

virtual RNode item (int index)=0
 Returns the indexth item in the collection.

virtual int getLength ()=0
 The number of nodes in the list.

acdk::util::RIterator iterator ()
 API acdk extension.


Member Function Documentation

virtual int org::w3c::dom::NodeList::getLength  )  [pure virtual]
 

The number of nodes in the list.

The range of valid child node indices is 0 to length-1 inclusive.

Implemented in acdk::xml::dom::NodeArrayList, acdk::xml::dom::XMLNodeList, acdk::xml::libxmldom::LibXMLNodeList, acdk::xml::libxmldom::LibXMLPathNodeList, and org::w3c::dom::xpath::XPathResultNodeList.

virtual RNode org::w3c::dom::NodeList::item int  index  )  [pure virtual]
 

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.

Parameters:
index Index into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

Implemented in acdk::xml::dom::NodeArrayList, acdk::xml::dom::XMLNodeList, acdk::xml::libxmldom::LibXMLNodeList, acdk::xml::libxmldom::LibXMLPathNodeList, and org::w3c::dom::xpath::XPathResultNodeList.

acdk::util::RIterator org::w3c::dom::NodeList::iterator  )  [inline]
 

API acdk extension.