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

Package | org.apache.flex.collections.converters
Class | public class JSONItemConverter
Inheritance | JSONItemConverter Object
Implements | IItemConverter

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The JSONItemConverter class parses a JSON structure into an ActionScript object. Other variants would return a specific data class instance.

Public Methods

| Method | Defined By
--- | --- | ---
|  | convertItem(data:String):Object | JSONItemConverter

Protected Methods

| Method | Defined By
--- | --- | ---
|  | getProperty(obj:Object, propName:String):* Get a property from an object. | JSONItemConverter
|  | setProperty(obj:Object, propName:String, value:*):void Set a property on an object. | JSONItemConverter

Method Detail

convertItem | () | method

`public function convertItem(data:String):Object`

Parameters

| `data:String`

Returns

| `Object`

getProperty | () | method |

`protected function getProperty(obj:Object, propName:String):*`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Get a property from an object.

Parameters

| `obj:Object`
| `propName:String`

Returns

| `*`

setProperty | () | method |

`protected function setProperty(obj:Object, propName:String, value:*):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Set a property on an object.

Parameters

| `obj:Object`
| `propName:String`
| `value:*`

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