Packageorg.omoa.spacemodel
Classpublic class AbstractSMLoader
InheritanceAbstractSMLoader Inheritance SpaceModel Inheritance flash.events.EventDispatcher
Implements ISpaceModelLoader
Subclasses AsmaSpaceXml, Shapefile

...



Public Properties
 PropertyDefined By
 Inheritedbounds : BoundingBox
[read-only] The BoundingBox of the SpaceModel.
SpaceModel
 InheritedgeometryType : String
[read-only] The GeometryType of the entities in the collection.
SpaceModel
 Inheritedid : String
[read-only] The ID of the Model.
SpaceModel
 InheritedisComplete : Boolean
[read-only] True, if this Model is beyond its initialization phase.
SpaceModel
 Inheritedprojection : IProjection
[read-only]
SpaceModel
Protected Properties
 PropertyDefined By
 Inherited_attributes : IDataModel
SpaceModel
 Inherited_bounds : BoundingBox
SpaceModel
 Inherited_complete : Boolean = false
SpaceModel
 Inheritedentities : Vector.<SpaceModelEntity>
SpaceModel
 Inherited_id : String
SpaceModel
 Inherited_projection : IProjection
SpaceModel
 Inherited_type : String = none
SpaceModel
Public Methods
 MethodDefined By
  
AbstractSMLoader
 Inherited
Not implemented.
SpaceModel
  
create(className:String, name:String = null):ISpaceModelLoader
[static] Creates an ISpaceModelLoader instance.
AbstractSMLoader
 Inherited
Returns the entity at the given index.
SpaceModel
 Inherited
The number of entities.
SpaceModel
 Inherited
SpaceModel
 Inherited
getIndexByAttribute(attribute:String, value:String):int
Not implemented.
SpaceModel
  
initialize(data:*):void
Implemented by subclass.
AbstractSMLoader
 Inherited
iterator(type:String = null):ISpaceModelIterator
Returns an iterator of the specified type to the elements of this collection.
SpaceModel
 Inherited
linkDataModel(model:IDataModel, dataDescription:Description = null):void
This method creates links between a DataModel and the entities of this SpaceModel.
SpaceModel
  
load(url:String, parameters:Object = null):void
Implemented by subclass.
AbstractSMLoader
  
setId(value:String):void
This setter allows to override the model id.
AbstractSMLoader
Protected Methods
 MethodDefined By
 Inherited
Adds an entity to the collection.
SpaceModel
 Inherited
setProjection(projection:IProjection):void
SpaceModel
Constructor Detail
AbstractSMLoader()Constructor
public function AbstractSMLoader()



Method Detail
create()method
public static function create(className:String, name:String = null):ISpaceModelLoader

Creates an ISpaceModelLoader instance.

Parameters

className:String — The name of the loader class, for example "Shapefile". 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
ISpaceModelLoader — Returns the ISpaceModelLoader instance or throws an ReferenceError.

Throws
ReferenceError
initialize()method 
public function initialize(data:*):void

Implemented by subclass.

Parameters

data:*

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

Implemented by subclass.

Parameters

url:String
 
parameters:Object (default = null)

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

This setter allows to override the model id. Subclasses should respect an pre-set model id value and should not overwrite it during the loading process.

Parameters

value:String