|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.core.internal.DItemIterator
org.eclipse.tptp.platform.report.birt).
public class DItemIterator
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 |
|---|
public DItemIterator(IDItem item)
| Method Detail |
|---|
public IDItem getCurrent()
getCurrent in interface IDItemIteratorpublic void setCurrent(IDItem aCurrent)
setCurrent in interface IDItemIteratoraCurrent - the new value of the current propertypublic IDItem getFirst()
getFirst in interface IDItemIteratorgetLast(),
getNext()public IDItem getLast()
getLast in interface IDItemIteratorgetFirst(),
getNext()public IDItem getNext()
getNext in interface IDItemIteratorgetLast(),
getFirst()
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||