Packagesystem.serializers.eden
Classpublic class EdenSerializer
InheritanceEdenSerializer Inheritance Object
Implements Serializer, Serializable

The eden Serializer class



Public Properties
 PropertyDefined By
  config : EdenConfigurator
[read-only] The config reference of the eden serializer.
EdenSerializer
  indentor : String
Indicates the indentor string representation.
EdenSerializer
  prettyIndent : int
Indicates the pretty indent value.
EdenSerializer
  prettyPrinting : Boolean
Indicates the pretty printing flag value.
EdenSerializer
Public Methods
 MethodDefined By
  
Creates a new EdenSerializer instance.
EdenSerializer
  
addAlias(alias:String, value:String):Boolean
Inserts a new alias in the dictionary.
EdenSerializer
  
addAuthorized(... arguments):void
Inserts an authorized path in the white list of the parser.
EdenSerializer
  
deserialize(source:String):*
Parse a string and interpret the source code to the correct ECMAScript construct.
EdenSerializer
  
removeAlias(alias:String):Boolean
Remove a specific alias in the dictionary.
EdenSerializer
  
removeAuthorized(... arguments):void
Removes an authorized path in the white list of the parser.
EdenSerializer
  
serialize(value:*):String
Serialize the specified value object passed-in argument.
EdenSerializer
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
EdenSerializer
Property Detail
configproperty
config:EdenConfigurator  [read-only]

The config reference of the eden serializer.


Implementation
    public function get config():EdenConfigurator
indentorproperty 
indentor:String

Indicates the indentor string representation.


Implementation
    public function get indentor():String
    public function set indentor(value:String):void
prettyIndentproperty 
prettyIndent:int

Indicates the pretty indent value.


Implementation
    public function get prettyIndent():int
    public function set prettyIndent(value:int):void
prettyPrintingproperty 
prettyPrinting:Boolean

Indicates the pretty printing flag value.


Implementation
    public function get prettyPrinting():Boolean
    public function set prettyPrinting(value:Boolean):void
Constructor Detail
EdenSerializer()Constructor
public function EdenSerializer()

Creates a new EdenSerializer instance.

Method Detail
addAlias()method
public function addAlias(alias:String, value:String):Boolean

Inserts a new alias in the dictionary.

Parameters

alias:String
 
value:String

Returns
Boolean — A boolean to indicates if the alias is registered or not.
addAuthorized()method 
public function addAuthorized(... arguments):void

Inserts an authorized path in the white list of the parser.

Parameters

... arguments

deserialize()method 
public function deserialize(source:String):*

Parse a string and interpret the source code to the correct ECMAScript construct.

Example :

         "undefined" --> undefined
         "0xFF"      --> 255
         "{a:1,b:2}" --> {a:1,b:2}
         

Parameters

source:String

Returns
* — a string representing the data.
removeAlias()method 
public function removeAlias(alias:String):Boolean

Remove a specific alias in the dictionary.

Parameters

alias:String

Returns
Boolean — A boolean to indicates if the alias is unregistered or not.
removeAuthorized()method 
public function removeAuthorized(... arguments):void

Removes an authorized path in the white list of the parser.

Parameters

... arguments

serialize()method 
public function serialize(value:*):String

Serialize the specified value object passed-in argument.

Parameters

value:*

Returns
String
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.