Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
MXMLDataInterpreter

Package | org.apache.flex.utils
Class | public class MXMLDataInterpreter
Inheritance | MXMLDataInterpreter 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

| Method | Defined By
--- | --- | ---
|  | MXMLDataInterpreter() Constructor. | MXMLDataInterpreter
|  | generateMXMLArray(document:Object, parent:IParent, data:Array):Array [static] Generates an Array of objects based on the encoded data. | MXMLDataInterpreter
|  | generateMXMLInstances(document:Object, parent:IParent, data:Array):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):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.

Returns

| `Array` — The Array.

generateMXMLInstances | () | method |

`public static function generateMXMLInstances(document:Object, parent:IParent, data:Array):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.

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.

Mon Sep 5 2016, 07:19 AM -07:00