TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Interface IDItemIterator

All Superinterfaces:
IDObject
All Known Implementing Classes:
DItemIterator

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public interface IDItemIterator
extends IDObject

Provides an interface to parse a IDItem hierarchy. Before parsing item with an IDItemIterator you should call getFirst to take the first item and getNext to take the next item. The method getNext returns null if there is no next item to parse (ie: getNext()==getFirst()).

 //usage example 1 
 for (IDItem c = iterator.getFirst(); c != null; c = c.getNext())
 {
 ...
 }
 
 //usage example 2
 iterator.getFirst()
 while (iterator.getCurrent()!=null)
 {
     ...
     getNext();
 }
 
 


Method Summary
 IDItem getCurrent()
          Deprecated. Returns the current item pointed by the iterator.
 IDItem getFirst()
          Deprecated. Returns the first IDItem the iterator of the first child.
 IDItem getLast()
          Deprecated. Returns the iterator of the last child.
 IDItem getNext()
          Deprecated. Returns the iterator of the next item.
 void setCurrent(IDItem i)
          Deprecated. Sets the current item to 'i'.
 

Method Detail

getCurrent

IDItem getCurrent()
Deprecated. 
Returns the current item pointed by the iterator. Returns null if the iterator is at the end.


getFirst

IDItem getFirst()
Deprecated. 
Returns the first IDItem the iterator of the first child.


getLast

IDItem getLast()
Deprecated. 
Returns the iterator of the last child.


getNext

IDItem getNext()
Deprecated. 
Returns the iterator of the next item.


setCurrent

void setCurrent(IDItem i)
Deprecated. 
Sets the current item to 'i'.

Parameters:
i - item to make current

TPTP 4.5.0 Platform Project
Internal API Specification