Main Page | Class Hierarchy | Class List | Class Members

org::jdom::DescendantIterator Class Reference

List of all members.

Public Member Functions

boolean hasNext ()
Object next ()
void remove ()

Package Functions

 DescendantIterator (Parent parent)

Detailed Description

Traverse all a parent's descendants (all children at any level below the parent).

Author:
Bradley S. Huffman

Jason Hunter

Version:
Revision
1.5
,
Date
2004/02/27 11:32:57


Constructor & Destructor Documentation

org::jdom::DescendantIterator::DescendantIterator Parent  parent  )  [inline, package]
 

Iterator for the descendants of the supplied object.

Parameters:
parent document or element whose descendants will be iterated


Member Function Documentation

boolean org::jdom::DescendantIterator::hasNext  )  [inline]
 

Returns true> if the iteration has more Content descendants.

Returns:
true is the iterator has more descendants

Object org::jdom::DescendantIterator::next  )  [inline]
 

Returns the next Content descendant.

Returns:
the next descendant

void org::jdom::DescendantIterator::remove  )  [inline]
 

Detaches the last org.jdom.Content returned by the last call to next from it's parent. Note: this does not affect iteration and all children, siblings, and any node following the removed node (in document order) will be visited.


The documentation for this class was generated from the following file:
Generated on Thu Dec 9 10:42:04 2004 for JDOM by  doxygen 1.3.9.1