Packageorg.omoa.datamodel
Classpublic class AbstractDMLoader
InheritanceAbstractDMLoader Inheritance flash.events.EventDispatcher
Implements IDataModelLoader, IDataModel
Subclasses SMEAttributeDataModel, Text

Subclasses need to initialise the storage core - the model property - in the initialisation phase. Classes that use subclasses of this class are expected to check the initialisation status isComplete before they access the underlying model.



Public Properties
 PropertyDefined By
  id : String
[read-only]
AbstractDMLoader
  isComplete : Boolean
[read-only]
AbstractDMLoader
  isRemote : Boolean
[read-only]
AbstractDMLoader
Protected Properties
 PropertyDefined By
  _id : String
AbstractDMLoader
  _isComplete : Boolean = false
AbstractDMLoader
  _isRemote : Boolean = false
AbstractDMLoader
  model : IDataModel
AbstractDMLoader
Public Methods
 MethodDefined By
  
AbstractDMLoader
  
addDatum(datum:Datum):void
AbstractDMLoader
  
addPropertyDimension(propertyDimension:ModelDimension):void
AbstractDMLoader
  
addValueDimension(valueDimension:ModelDimension):void
AbstractDMLoader
  
create(className:String, name:String = null):IDataModelLoader
[static] Creates an IDataModelLoader instance.
AbstractDMLoader
  
createDescription(descriptionString:String = null):Description
AbstractDMLoader
  
AbstractDMLoader
  
initialize(data:*):void
AbstractDMLoader
  
AbstractDMLoader
  
load(url:String, parameters:Object = null):void
AbstractDMLoader
  
AbstractDMLoader
  
AbstractDMLoader
  
setId(value:String):void
AbstractDMLoader
  
toString():String
[override]
AbstractDMLoader
  
updateDatum(datum:Datum):void
AbstractDMLoader
  
AbstractDMLoader
  
AbstractDMLoader
Property Detail
_idproperty
protected var _id:String

_isCompleteproperty 
protected var _isComplete:Boolean = false

_isRemoteproperty 
protected var _isRemote:Boolean = false

idproperty 
id:String  [read-only]


Implementation
    public function get id():String
isCompleteproperty 
isComplete:Boolean  [read-only]


Implementation
    public function get isComplete():Boolean
isRemoteproperty 
isRemote:Boolean  [read-only]


Implementation
    public function get isRemote():Boolean
modelproperty 
protected var model:IDataModel

Constructor Detail
AbstractDMLoader()Constructor
public function AbstractDMLoader()



Method Detail
addDatum()method
public function addDatum(datum:Datum):void

Parameters

datum:Datum

addPropertyDimension()method 
public function addPropertyDimension(propertyDimension:ModelDimension):void

Parameters

propertyDimension:ModelDimension

addValueDimension()method 
public function addValueDimension(valueDimension:ModelDimension):void

Parameters

valueDimension:ModelDimension

create()method 
public static function create(className:String, name:String = null):IDataModelLoader

Creates an IDataModelLoader instance.

Parameters

className:String — The name of the loader class, for example "Text". If you want to create an instance of your own loader subclass you need to include the package.
 
name:String (default = null) — This will set the id property of the model.

Returns
IDataModelLoader — Returns the IDataModelLoader instance or throws an ReferenceError.

Throws
ReferenceError
createDescription()method 
public function createDescription(descriptionString:String = null):Description

Parameters

descriptionString:String (default = null)

Returns
Description
getDatum()method 
public function getDatum(description:Description):Datum

Parameters

description:Description

Returns
Datum
initialize()method 
public function initialize(data:*):void

Parameters

data:*

iterator()method 
public function iterator(type:String):IDataModelIterator

Parameters

type:String

Returns
IDataModelIterator
load()method 
public function load(url:String, parameters:Object = null):void

Parameters

url:String
 
parameters:Object (default = null)

propertyDimension()method 
public function propertyDimension(order:int):ModelDimension

Parameters

order:int

Returns
ModelDimension
propertyDimensionCount()method 
public function propertyDimensionCount():int

Returns
int
setId()method 
public function setId(value:String):void

Parameters

value:String

toString()method 
override public function toString():String

Returns
String
updateDatum()method 
public function updateDatum(datum:Datum):void

Parameters

datum:Datum

valueDimension()method 
public function valueDimension(index:int = 0):ModelDimension

Parameters

index:int (default = 0)

Returns
ModelDimension
valueDimensionCount()method 
public function valueDimensionCount():int

Returns
int