Packagesystem.ioc
Classpublic class Parameters
InheritanceParameters Inheritance Object
Subclasses FlashVars

This collector register a parameters object reference, this object can be use to configurate the application with externals values.



Public Properties
 PropertyDefined By
  parameters : Object
Defines the parameters object reference of the application.
Parameters
Public Methods
 MethodDefined By
  
Parameters(parameters:Object = null)
Creates a new Parameters instance.
Parameters
  
contains(name:String):Boolean
Indicates if the parameters object contains the specified variable.
Parameters
  
getValue(name:String, ... rest):*
Returns the value of the specified variable in the parameters reference.
Parameters
Property Detail
parametersproperty
parameters:Object

Defines the parameters object reference of the application.


Implementation
    public function get parameters():Object
    public function set parameters(value:Object):void
Constructor Detail
Parameters()Constructor
public function Parameters(parameters:Object = null)

Creates a new Parameters instance.

Parameters
parameters:Object (default = null) — The object parameters reference.
Method Detail
contains()method
public function contains(name:String):Boolean

Indicates if the parameters object contains the specified variable.

Parameters

name:String

Returns
Boolean
getValue()method 
public function getValue(name:String, ... rest):*

Returns the value of the specified variable in the parameters reference.

Parameters

name:String — The name of the variable to resolve in the parameters reference.
 
... rest — (optional) All IEvaluator objects used to evaluate and initialize the value of the specified FlashVars.

Example :

         import system.evaluators.DateEvaluator ;
         import system.evaluators.EdenEvaluator ;
         
         import system.ioc.Parameters ;
         
         var params:Parameters = new Parameters( { date : "new Date(2006,5,12,16,12,24)" } ) ;
          
         var value:String = params.getValue("date", new EdenEvaluator(false), new DateEvaluator()) ;
         
         trace( "result : " + value ) ; // result : "12.06.2006 16:12:24" with the original "date" params value : "new Date(2006,5,12,16,12,24)"
         

Returns
* — the value of the specified variable in the Parameters object.