Packageorg.apache.flex.utils
Classpublic class MXMLDataInterpreter
InheritanceMXMLDataInterpreter Inheritance Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The MXMLDataInterpreter class is the class that interprets the encoded information generated by the compiler that describes the contents of an MXML document.



Public Methods
 MethodDefined By
  
Constructor.
MXMLDataInterpreter
  
generateMXMLArray(document:Object, parent:IParent, data:Array, recursive:Boolean = true):Array
[static] Generates an Array of objects based on the encoded data.
MXMLDataInterpreter
  
generateMXMLInstances(document:Object, parent:IParent, data:Array, recursive:Boolean = true):void
[static] Generates the instances of objects in an MXML document based on the encoded data.
MXMLDataInterpreter
  
generateMXMLObject(document:Object, data:Array):Object
[static] Generates an object based on the encoded data.
MXMLDataInterpreter
  
generateMXMLProperties(host:Object, data:Array):void
[static] Generates the properties of the top-level object in an MXML document based on the encoded data.
MXMLDataInterpreter
Constructor Detail
MXMLDataInterpreter()Constructor
public function MXMLDataInterpreter()

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Constructor. All methods are static so should not be instantiated.

Method Detail
generateMXMLArray()method
public static function generateMXMLArray(document:Object, parent:IParent, data:Array, recursive:Boolean = true):Array

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Generates an Array of objects based on the encoded data.

Parameters

document:Object — The MXML document. If the object has an id it will be assigned in this document in this method.
 
parent:IParent — The parent for any display objects encoded in the array.
 
data:Array — The encoded data.
 
recursive:Boolean (default = true) — Whether to interpret a child's array of encoded data.

Returns
Array — The Array.
generateMXMLInstances()method 
public static function generateMXMLInstances(document:Object, parent:IParent, data:Array, recursive:Boolean = true):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Generates the instances of objects in an MXML document based on the encoded data.

Parameters

document:Object — The MXML document. If the object has an id it will be assigned in this document in this method.
 
parent:IParent — The parent for any display objects encoded in the array.
 
data:Array — The encoded data.
 
recursive:Boolean (default = true) — Whether to interpret a child's array of encoded data.

generateMXMLObject()method 
public static function generateMXMLObject(document:Object, data:Array):Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Generates an object based on the encoded data.

Parameters

document:Object — The MXML document. If the object has an id it will be assigned in this document in this method.
 
data:Array — The encoded data.

Returns
Object — The object.
generateMXMLProperties()method 
public static function generateMXMLProperties(host:Object, data:Array):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Generates the properties of the top-level object in an MXML document based on the encoded data. This basically means setting the attributes found on the tag and child tags that aren't in the default property.

Parameters

host:Object — The MXML document. If the object has an id it will be assigned in this document in this method.
 
data:Array — The encoded data.