| Package | com.daveoncode.util |
| Class | public final class ObjectCollector |
| Method | Defined by | ||
|---|---|---|---|
|
ObjectCollector's constructor function
| ObjectCollector | ||
|
getAll():Array
Returns all references to registered objects
| ObjectCollector | ||
|
[static]
Returns the current ObjectCollector's instance
| ObjectCollector | ||
|
getObject(id:String):Object
Returns a reference to an object registered with the specified id
| ObjectCollector | ||
|
registerObject(obj:Object):void
Adds an object's reference to ObjectCollector's collection
| ObjectCollector | ||
|
unregisterAll():void
Removes all the references to registerd objects
| ObjectCollector | ||
|
unregisterObject(id:String):Boolean
Removes a reference to a previously registered object (specified by id)
| ObjectCollector | ||
| ObjectCollector | () | constructor |
public function ObjectCollector()ObjectCollector's constructor function
| getAll | () | method |
public function getAll():ArrayReturns all references to registered objects
ReturnsArray — Array A (heterogeneous) collection of references to registered objects
|
| getInstance | () | method |
public static function getInstance():ObjectCollectorReturns the current ObjectCollector's instance
ReturnsObjectCollector —
ObjectCollector ObjectCollector's instance
|
| getObject | () | method |
public function getObject(id:String):ObjectReturns a reference to an object registered with the specified id
Parametersid:String — String used as object identifier
|
Object — Object Object registered
|
| registerObject | () | method |
public function registerObject(obj:Object):voidAdds an object's reference to ObjectCollector's collection
Parametersobj:Object — Any type of Object you need to get a reference to
|
| unregisterAll | () | method |
public function unregisterAll():voidRemoves all the references to registerd objects
| unregisterObject | () | method |
public function unregisterObject(id:String):BooleanRemoves a reference to a previously registered object (specified by id)
Parametersid:String — String used as object identifier
|
Boolean — Boolean True if the reference has been found and removed
from ObjectCollector's collection, false otherwise (the reference with
the specified id was never been registered)
|