http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Download
Installation
Build

API Docs
Samples
Schema

FAQs
Programming
Migration

Releases
Bug-Reporting
Feedback

Y2K Compliance
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IDOM_NodeList Class Reference

The NodeList interface provides the abstraction of an ordered collection of nodes. More...

#include <IDOM_NodeList.hpp>

List of all members.

Public Methods

Destructor.
virtual ~IDOM_NodeList ()
Get functions.
virtual IDOM_Nodeitem (unsigned int index)=0
 Returns the indexth item in the collection. More...

virtual unsigned int getLength ()=0
 Returns the number of nodes in the list. More...


Protected Methods

 IDOM_NodeList ()
 IDOM_NodeList (const IDOM_NodeList &other)
IDOM_NodeList& operator= (const IDOM_NodeList &other)


Detailed Description

The NodeList interface provides the abstraction of an ordered collection of nodes.

NodeLists are created by DOM_Document::getElementsByTagName(), DOM_Node::getChildNodes(),

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

NodeLists are "live", in that any changes to the document tree are immediately reflected in any NodeLists that may have been created for that tree.


Constructor & Destructor Documentation

IDOM_NodeList::IDOM_NodeList ( ) [protected]
 

IDOM_NodeList::IDOM_NodeList ( const IDOM_NodeList & other ) [protected]
 

IDOM_NodeList::~IDOM_NodeList ( ) [virtual]
 


Member Function Documentation

unsigned int IDOM_NodeList::getLength ( ) [pure virtual]
 

Returns the number of nodes in the list.

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

IDOM_Node * IDOM_NodeList::item ( unsigned 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.

IDOM_NodeList & IDOM_NodeList::operator= ( const IDOM_NodeList & other ) [protected]
 


The documentation for this class was generated from the following file:


Copyright © 2000 The Apache Software Foundation. All Rights Reserved.