Packageorg.omoa.spacemodel
Classpublic class AbstractIterator
InheritanceAbstractIterator Inheritance Object
Implements ISpaceModelIterator
Subclasses AttributeCompareIterator, AttributeFilterIterator, SimpleIterator

This class implements a factory functionality for all ISpaceModelIterator allowing descendents of AbstractIterator to be chained by something like:

followingIterator = anIterator.iterator( "Class Name of following iterator" );



Protected Properties
 PropertyDefined By
  _entities : Vector.<SpaceModelEntity>
AbstractIterator
Public Methods
 MethodDefined By
  
AbstractIterator(entities:Vector.<SpaceModelEntity> = null)
AbstractIterator
  
count():int
AbstractIterator
  
hasNext():Boolean
AbstractIterator
  
iterator(type:String = null):ISpaceModelIterator
Creates a new ISpaceModelIterator of the given type.
AbstractIterator
  
AbstractIterator
  
reset():void
AbstractIterator
  
type():String
AbstractIterator
Property Detail
_entitiesproperty
protected var _entities:Vector.<SpaceModelEntity>

Constructor Detail
AbstractIterator()Constructor
public function AbstractIterator(entities:Vector.<SpaceModelEntity> = null)



Parameters
entities:Vector.<SpaceModelEntity> (default = null)
Method Detail
count()method
public function count():int

Returns
int
hasNext()method 
public function hasNext():Boolean

Returns
Boolean
iterator()method 
public function iterator(type:String = null):ISpaceModelIterator

Creates a new ISpaceModelIterator of the given type.

Parameters

type:String (default = null) — Type of the iterator (optional). Leave empty for a SimpleIterator or give the class name for an iterator from this package or give the full (package + classname) name for your own implementation.

Returns
ISpaceModelIterator — An iterator of the given type, a SimpleIterator or a NullIterator.
next()method 
public function next():SpaceModelEntity

Returns
SpaceModelEntity
reset()method 
public function reset():void

type()method 
public function type():String

Returns
String