Packageorg.omoa.framework
Classpublic class ModelDimension
InheritanceModelDimension Inheritance Object

This class represents one dimension of a DataModel, examples: "Time" {1999,2000,2001}, "Sex" {male,female}, "Country" {UK,PL,FR}.

See also

org.omoa.framework.ModelDimensionType


Public Properties
 PropertyDefined By
  classificationID : String
[read-only]
ModelDimension
  codeCount : int
[read-only]
ModelDimension
  codes : Vector.<String>
[read-only]
ModelDimension
  description : String
[read-only]
ModelDimension
  isRemote : Boolean
[read-only]
ModelDimension
  isValueDimension : Boolean
[read-only]
ModelDimension
  labels : Vector.<String>
[read-only]
ModelDimension
  title : String
[read-only]
ModelDimension
  type : String
[read-only]
ModelDimension
  unit : String
[read-only]
ModelDimension
  url : String
[read-only]
ModelDimension
Public Methods
 MethodDefined By
  
ModelDimension(id:String, title:String, unit:String, type:String, codes:Array = null, labels:Array = null, isValueDimension:Boolean = false, description:String, url:String, isRemote:Boolean = false)
ModelDimension
  
code(index:int):String
ModelDimension
  
indexOfCode(code:String):int
ModelDimension
  
label(index:int):String
ModelDimension
Public Constants
 ConstantDefined By
  UNDEFINED : String = _
[static]
ModelDimension
  UNDEFINED_INDEX : int = 0
[static]
ModelDimension
Property Detail
classificationIDproperty
classificationID:String  [read-only]


Implementation
    public function get classificationID():String
codeCountproperty 
codeCount:int  [read-only]


Implementation
    public function get codeCount():int
codesproperty 
codes:Vector.<String>  [read-only]


Implementation
    public function get codes():Vector.<String>
descriptionproperty 
description:String  [read-only]


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


Implementation
    public function get isRemote():Boolean
isValueDimensionproperty 
isValueDimension:Boolean  [read-only]


Implementation
    public function get isValueDimension():Boolean
labelsproperty 
labels:Vector.<String>  [read-only]


Implementation
    public function get labels():Vector.<String>
titleproperty 
title:String  [read-only]


Implementation
    public function get title():String
typeproperty 
type:String  [read-only]


Implementation
    public function get type():String
unitproperty 
unit:String  [read-only]


Implementation
    public function get unit():String
urlproperty 
url:String  [read-only]


Implementation
    public function get url():String
Constructor Detail
ModelDimension()Constructor
public function ModelDimension(id:String, title:String, unit:String, type:String, codes:Array = null, labels:Array = null, isValueDimension:Boolean = false, description:String, url:String, isRemote:Boolean = false)



Parameters
id:String
 
title:String
 
unit:String
 
type:String
 
codes:Array (default = null)
 
labels:Array (default = null)
 
isValueDimension:Boolean (default = false)
 
description:String
 
url:String
 
isRemote:Boolean (default = false)
Method Detail
code()method
public function code(index:int):String

Parameters

index:int

Returns
String
indexOfCode()method 
public function indexOfCode(code:String):int

Parameters

code:String

Returns
int
label()method 
public function label(index:int):String

Parameters

index:int

Returns
String
Constant Detail
UNDEFINEDConstant
public static const UNDEFINED:String = _

UNDEFINED_INDEXConstant 
public static const UNDEFINED_INDEX:int = 0