Packageorg.juicekit.util.model
Classpublic class ModelObject
InheritanceModelObject Inheritance flash.events.EventDispatcher



Public Methods
 MethodDefined by
  
ModelObject(target:IEventDispatcher = null)
Constructor.
ModelObject
  
Returns a deep clone of the model object.
ModelObject
  
hasAttribute(xml:XML, name:String):Boolean
[static] Helper function to determine whether an optional attribute is present in an XML tree.
ModelObject
  
parse(xml:XML, context:* = null):void
Parse data from the xml fragment and populate the ModelObject instance properties.
ModelObject
Constructor detail
ModelObject()constructor
public function ModelObject(target:IEventDispatcher = null)

Constructor.

Parameters
target:IEventDispatcher (default = null)
Method detail
clone()method
public function clone():ModelObject

Returns a deep clone of the model object.

Returns
ModelObject
hasAttribute()method 
public static function hasAttribute(xml:XML, name:String):Boolean

Helper function to determine whether an optional attribute is present in an XML tree.

Parameters
xml:XML
 
name:String

Returns
Boolean
parse()method 
public function parse(xml:XML, context:* = null):void

Parse data from the xml fragment and populate the ModelObject instance properties.

Note: This method mutates the receiving instance.

Parameters
xml:XML
 
context:* (default = null)