| Package | system.serializers.eden |
| Class | public class EdenConfigurator |
| Inheritance | EdenConfigurator Configurator Object |
| Property | Defined By | ||
|---|---|---|---|
| allowAliases : Boolean
Allows to use aliases in the eden parser. | EdenConfigurator | ||
| allowFunctionCall : Boolean
Allows to execute function call. | EdenConfigurator | ||
| arrayIndexAsBracket : Boolean
When set to false array index are evaluated without bracket eval( test.0 ) for Flash ActionScript
When set to true array index are evaluated with bracket eval( test[0] ) for JavaScript, JScript, JSDB etc. | EdenConfigurator | ||
| authorized : Array
List of authorized keywords, objects path and constructors that the parser is allowed to interpret. | EdenConfigurator | ||
| autoAddScopePath : Boolean
Determinates if the add scope process is automatic or not. | EdenConfigurator | ||
| compress : Boolean
Parameter to remove (true) or add (false) all unecessary spaces, tabs, carriages returns, lines feeds etc. | EdenConfigurator | ||
| copyObjectByValue : Boolean
Parameter allowing to copy objects by value if true or by reference if false. | EdenConfigurator | ||
| security : Boolean
Parameter setting on (true) or off (false) the security. | EdenConfigurator | ||
| strictMode : Boolean
Allows to define the case-sensitivy of the parsers. | EdenConfigurator | ||
| undefineable : *
Value assigned to a variable when this one is not found or not authorized. | EdenConfigurator | ||
| verbose : Boolean
Parameter allowing to trace messages in the console if the environment permit it. | EdenConfigurator | ||
| Method | Defined By | ||
|---|---|---|---|
EdenConfigurator(config:Object)
Creates a new EdenConfigurator instance. | EdenConfigurator | ||
![]() | load(config:Object):void
Copy all properties in the specified passed-in object in the internal config object of the Configurator. | Configurator | |
![]() | toSource(indent:int = 0):String
Returns the source code string representation of the object. | Configurator | |
![]() | toString():String
Returns the String representation of the object. | Configurator | |
| allowAliases | property |
allowAliases:BooleanAllows to use aliases in the eden parser.
public function get allowAliases():Boolean public function set allowAliases(value:Boolean):void| allowFunctionCall | property |
allowFunctionCall:BooleanAllows to execute function call. if set to false it blocks any functrion call and return undefined.
Example:
"titi = \"hello world\";
toto = titi.toUpperCase();"
// allowFunctionCall = true
toto = "HELLO WORLD"
// allowFunctionCall = false
toto = undefined
public function get allowFunctionCall():Boolean public function set allowFunctionCall(value:Boolean):void| arrayIndexAsBracket | property |
arrayIndexAsBracket:BooleanWhen set to false array index are evaluated without bracket eval( test.0 ) for Flash ActionScript When set to true array index are evaluated with bracket eval( test[0] ) for JavaScript, JScript, JSDB etc.
public function get arrayIndexAsBracket():Boolean public function set arrayIndexAsBracket(value:Boolean):void| authorized | property |
authorized:ArrayList of authorized keywords, objects path and constructors that the parser is allowed to interpret.
Note: you can add full path
ex: "blah.foobar"
and/or starting path
ex: "toto.titi.
The difference is with a full path you can only create/use/define/assign value to this exact path and with a starting path you can create/use/define/assign value to this path and its child paths.
Attention: special values as NaN, true, false, null, undefined are always authorized.
public function get authorized():Array public function set authorized(value:Array):void| autoAddScopePath | property |
autoAddScopePath:BooleanDeterminates if the add scope process is automatic or not.
public function get autoAddScopePath():Boolean public function set autoAddScopePath(value:Boolean):void| compress | property |
compress:BooleanParameter to remove (true) or add (false) all unecessary spaces, tabs, carriages returns, lines feeds etc. to optimize (more or less) packets of datas when they are transfered.
Note 1 : use "compress = false" when you want to have a better view or debug packets of datas.
Note 2 : this property is in sync with eden.prettyPrint
public function get compress():Boolean public function set compress(value:Boolean):void| copyObjectByValue | property |
copyObjectByValue:BooleanParameter allowing to copy objects by value if true or by reference if false.
Example :
foo = {a:1, b:2, c:3};
bar = foo;
In this case with copyObjectByValue = false
bar will be a reference to the foo object
but if copyObjectByValue = true
bar will be an exact copy of foo object
public function get copyObjectByValue():Boolean public function set copyObjectByValue(value:Boolean):void| security | property |
security:BooleanParameter setting on (true) or off (false) the security. If true, all object path, function or constructor will be scanned at interpretation time against the authorized list.
public function get security():Boolean public function set security(value:Boolean):voidSee also
| strictMode | property |
strictMode:BooleanAllows to define the case-sensitivy of the parsers. If true, variable names that differ only in case are considered different.
public function get strictMode():Boolean public function set strictMode(value:Boolean):void| undefineable | property |
undefineable:*Value assigned to a variable when this one is not found or not authorized. Depending on your environment you can override it with a more suitable one for exemple on C# you could set it to null.
public function get undefineable():* public function set undefineable(value:any):void| verbose | property |
verbose:BooleanParameter allowing to trace messages in the console if the environment permit it.
public function get verbose():Boolean public function set verbose(value:Boolean):void| EdenConfigurator | () | Constructor |
public function EdenConfigurator(config:Object)Creates a new EdenConfigurator instance.
Parametersconfig:Object — This argument initialize the configurator with a generic object.
|