Class SlotIterator
java.lang.Object
org.eclipse.birt.report.model.api.SlotIterator
- All Implemented Interfaces:
Iterator<DesignElementHandle>
An Iterator over the elements in a slot. Each call to
getNext( )
returns a handle of type DesignElementHandle
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Current iteration position.protected final SlotHandle
Handle to the slot over which to iterate. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
slotHandle
Handle to the slot over which to iterate. -
posn
protected int posnCurrent iteration position.
-
-
Constructor Details
-
SlotIterator
Constructs an iterator for the given slot.- Parameters:
handle
- handle to the slot over which to iterate
-
-
Method Details
-
remove
public void remove()Removes the element at the current iterator position.- Specified by:
remove
in interfaceIterator<DesignElementHandle>
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<DesignElementHandle>
-
next
Returns a handle to the next content element. The handle is one of the various element classes derived fromDesignElementHandle
.- Specified by:
next
in interfaceIterator<DesignElementHandle>
- Returns:
- a handle to the next content element.
-