TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DItemIterator

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DItemIterator
All Implemented Interfaces:
IDItemIterator, IDObject

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 class DItemIterator
extends java.lang.Object
implements IDItemIterator

DItemIterator provides a way to parse all IDItem of a document hierarchy in deep before.
The following example prints all text in a document

 IDItem doc = new DDocument();
 ...
 DItemIterator it = new DItemIterator(doc);
 for (IDItem c = it.getFirst(); c != null; c = c.getNext())
 {
   if (c instanceof IDTextualItem)
      System.out.println((((IDTextualItem)c).getText());
 }
 
 


Constructor Summary
DItemIterator(IDItem item)
          Deprecated. Creates a DItemIterator.
 
Method Summary
 IDItem getCurrent()
          Deprecated. Access method for the current property.
 IDItem getFirst()
          Deprecated. Returns the first item of the iterator.
 IDItem getLast()
          Deprecated. Returns the deepest item.
 IDItem getNext()
          Deprecated. Returns the next item: first child if it exists or brother.
 void setCurrent(IDItem aCurrent)
          Deprecated. Sets the value of the current property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DItemIterator

public DItemIterator(IDItem item)
Deprecated. 
Creates a DItemIterator. The current item is set with the item passed in parameter.

Method Detail

getCurrent

public IDItem getCurrent()
Deprecated. 
Access method for the current property.

Specified by:
getCurrent in interface IDItemIterator
Returns:
the current value of the current property

setCurrent

public void setCurrent(IDItem aCurrent)
Deprecated. 
Sets the value of the current property.

Specified by:
setCurrent in interface IDItemIterator
Parameters:
aCurrent - the new value of the current property

getFirst

public IDItem getFirst()
Deprecated. 
Returns the first item of the iterator.

Specified by:
getFirst in interface IDItemIterator
See Also:
getLast(), getNext()

getLast

public IDItem getLast()
Deprecated. 
Returns the deepest item.

Specified by:
getLast in interface IDItemIterator
See Also:
getFirst(), getNext()

getNext

public IDItem getNext()
Deprecated. 
Returns the next item: first child if it exists or brother.

Specified by:
getNext in interface IDItemIterator
See Also:
getLast(), getFirst()

TPTP 4.5.0 Platform Project
Internal API Specification