Class MemberIterator
- java.lang.Object
-
- org.eclipse.birt.report.model.api.MemberIterator
-
- All Implemented Interfaces:
java.util.Iterator
public class MemberIterator extends java.lang.Object implements java.util.IteratorAn iterator over the members of a structure. Each call togetNext( )returns aMemberHandlefor the next structure member.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisValidprotected java.util.IteratoriterIterator over the members.protected org.eclipse.birt.report.model.metadata.StructureDefnstructDefnThe definition of the structure.protected StructureHandlestructHandleHandle to the structure itself.
-
Constructor Summary
Constructors Constructor Description MemberIterator(StructureHandle struct)Constructs a member iterator with the given structure handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Objectnext()Returns a handle to the next member.voidremove()The remove operation is not supported when iterating over a structure; the application cannot remove members of a structure.
-
-
-
Field Detail
-
structHandle
protected StructureHandle structHandle
Handle to the structure itself.
-
structDefn
protected org.eclipse.birt.report.model.metadata.StructureDefn structDefn
The definition of the structure.
-
iter
protected java.util.Iterator iter
Iterator over the members.
-
isValid
protected boolean isValid
-
-
Constructor Detail
-
MemberIterator
public MemberIterator(StructureHandle struct)
Constructs a member iterator with the given structure handle.- Parameters:
struct- handle to the structure over which to iterate
-
-
Method Detail
-
remove
public void remove()
The remove operation is not supported when iterating over a structure; the application cannot remove members of a structure.- Specified by:
removein interfacejava.util.Iterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next()
Returns a handle to the next member. Implementation of iterator.next( )- Specified by:
nextin interfacejava.util.Iterator- Returns:
- a handle to the next member.
- See Also:
MemberHandle
-
-