Packagemx.olap
Classpublic class OLAPDimension
InheritanceOLAPDimension Inheritance OLAPElement Inheritance flash.utils.Proxy
Implements IOLAPDimension

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The OLAPDimension class represents a dimension of an OLAP cube.

MXML SyntaxexpandedHide MXML Syntax

The <mx:OLAPDimension> tag inherits all of the tag attributes of its superclass, and adds the following tag attributes:

  <mx:OLAPDimension
    Properties
    attributes=""
    elements=""
    hierarchies=""
   />
   

Default MXML Propertyelements

See also

mx.olap.IOLAPDimension


Public Properties
 PropertyDefined By
  attributes : IList
The attributes of this dimension, as a list of OLAPAttribute instances.
OLAPDimension
  cube : IOLAPCube
The cube to which this dimension belongs.
OLAPDimension
  defaultMember : IOLAPMember
[read-only] The default member of this dimension.
OLAPDimension
 InheriteddisplayName : String
The name of the OLAP element, as a String, which can be used for display.
OLAPElement
  elements : Array
[write-only] Processes the input Array and initializes the attributes and hierarchies properties based on the elements of the Array.
OLAPDimension
  hierarchies : IList
All the hierarchies for this dimension, as a list of IOLAPHierarchy instances.
OLAPDimension
  isMeasure : Boolean
[read-only] Contains true if this is the measures dimension, which holds all the measure members.
OLAPDimension
  members : IList
[read-only] Returns all the members of this dimension, as a list of IOLAPMember instances.
OLAPDimension
 Inheritedname : String
The name of the OLAP element that includes the OLAP schema hierarchy of the element.
OLAPElement
 InheriteduniqueName : String
[read-only] The unique name of the OLAP element in the cube.
OLAPElement
Public Methods
 MethodDefined By
  
OLAPDimension(name:String = null, displayName:String = null)
Constructor
OLAPDimension
  
Returns the attribute with the given name within the dimension.
OLAPDimension
  
Returns the hierarchy with the given name within the dimension.
OLAPDimension
  
findMember(name:String):IOLAPMember
Returns the member with the given name within the dimension.
OLAPDimension
 Inherited
toString():String
Returns the unique name of the element.
OLAPElement
Property Detail
attributesproperty
attributes:IList

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The attributes of this dimension, as a list of OLAPAttribute instances.


Implementation
    public function get attributes():IList
    public function set attributes(value:IList):void
cubeproperty 
cube:IOLAPCube

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The cube to which this dimension belongs.


Implementation
    public function get cube():IOLAPCube
    public function set cube(value:IOLAPCube):void
defaultMemberproperty 
defaultMember:IOLAPMember  [read-only]

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The default member of this dimension.


Implementation
    public function get defaultMember():IOLAPMember
elementsproperty 
elements:Array  [write-only]

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Processes the input Array and initializes the attributes and hierarchies properties based on the elements of the Array. Attributes are represented in the Array by instances of the OLAPAttribute class, and hierarchies are represented by instances of the OLAPHierarchy class.

Use this property to define the attributes and hierarchies of a cube in a single Array.


Implementation
    public function set elements(value:Array):void
hierarchiesproperty 
hierarchies:IList

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

All the hierarchies for this dimension, as a list of IOLAPHierarchy instances.


Implementation
    public function get hierarchies():IList
    public function set hierarchies(value:IList):void
isMeasureproperty 
isMeasure:Boolean  [read-only]

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Contains true if this is the measures dimension, which holds all the measure members.


Implementation
    public function get isMeasure():Boolean
membersproperty 
members:IList  [read-only]

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Returns all the members of this dimension, as a list of IOLAPMember instances. The returned list might represent remote data and therefore can throw an ItemPendingError.


Implementation
    public function get members():IList
Constructor Detail
OLAPDimension()Constructor
public function OLAPDimension(name:String = null, displayName:String = null)

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Constructor

Parameters
name:String (default = null) — The name of the OLAP dimension that includes the OLAP schema hierarchy of the element.
 
displayName:String (default = null) — The name of the OLAP dimension, as a String, which can be used for display.
Method Detail
findAttribute()method
public function findAttribute(name:String):IOLAPAttribute

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Returns the attribute with the given name within the dimension.

Parameters

name:String — The name of the attribute.

Returns
IOLAPAttribute — An IOLAPAttribute instance representing the attribute, or null if an attribute is not found.
findHierarchy()method 
public function findHierarchy(name:String):IOLAPHierarchy

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Returns the hierarchy with the given name within the dimension.

Parameters

name:String — The name of the hierarchy.

Returns
IOLAPHierarchy — An IOLAPHierarchy instance representing the hierarchy, or null if a hierarchy is not found.
findMember()method 
public function findMember(name:String):IOLAPMember

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Returns the member with the given name within the dimension.

Parameters

name:String — The name of the member.

Returns
IOLAPMember — An IOLAPMember instance representing the member, or null if a member is not found.