ObjectIterator : public class
Created: 04/26/07 10:55:48
Modified: 04/26/07 10:55:48
Project:
Advanced:
Concrete Iterator implementation which provides methods for iterating over generic object
Attribute Details
private int
  index
Initial: 0
Notes: The index of the current item in the iteration
private Array
  source
Notes: The aggregate object in which to iterate over
Operation Details
public
hasNext():Boolean
Sequential
Notes: Determines if there are properties remaining in the Object <br />@return  true if index remains in the Object, false if not
public
next():var
Sequential
Notes: Returns the next index value in the Object <br />@inheritDoc
public
ObjectIterator(
object: Object,
):var
Sequential
Notes: Instantiates new ObjectIterator instance <br />@param the aggregate object in which to iterate over
public
position():int
Sequential
Notes: Determines the position of the current element in the aggreagate <br />@inheritDoc
public
reset():void
Sequential
Notes: Resets the index of the ObjectIterator to 0
public
setAggregate(
aggregate: Object,
):void
Sequential
Notes: Sets the aggregate object in which to iterate over <br />@param the object instance to traverse
Object Type Connection Notes
«interface» IIterator Interface Realisation