ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
ga.util 

StateDeserializer  - AS3 ADEP Guides

Packagega.util
Classpublic class StateDeserializer
InheritanceStateDeserializer Inheritance Object

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 9
Runtime Versions: AIR 1.0, Flash Player 10

Class to deserialize the state of the guide application including Inputs, SelectionLists and additional data objects



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
deserialize(serializedState:XML, modelRoot:IValueObject, newInstance:Function):void
This is the exposed public method of this class which when given previously serialized state and a initialized modelRoot, it will fill the modelRoot with the provided state.
StateDeserializer
  
getChildElement(state:XML, property:String):XML
[static] get child element for given the child root name
StateDeserializer
  
[static] return the guide state element from the rootXML if it exists
StateDeserializer
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Method Detail

deserialize

()method
public function deserialize(serializedState:XML, modelRoot:IValueObject, newInstance:Function):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 9
Runtime Versions: AIR 1.0, Flash Player 10

This is the exposed public method of this class which when given previously serialized state and a initialized modelRoot, it will fill the modelRoot with the provided state.

Parameters

serializedState:XML — - state previously serialized by the StateSerializer class
 
modelRoot:IValueObject — - the top level value objects where all state is currently stored
 
newInstance:Function — - function to use to create instances of objects given class names.

getChildElement

()method 
public static function getChildElement(state:XML, property:String):XML

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 9
Runtime Versions: AIR 1.0, Flash Player 10

get child element for given the child root name

Parameters

state:XML — the state information
 
property:String — the item to retrieve

Returns
XML — XML

getGuideState

()method 
public static function getGuideState(rootXml:XML):XML

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Document Services - Guides 9
Runtime Versions: AIR 1.0, Flash Player 10

return the guide state element from the rootXML if it exists

Parameters

rootXml:XML — the source xml to search for guide state information in

Returns
XML — XML