| 包 | mx.olap |
| 类 | public class OLAPHierarchy |
| 继承 | OLAPHierarchy OLAPElement Proxy Object |
| 实现 | IOLAPHierarchy |
| 子类 | OLAPAttribute |
隐藏 MXML 语法
The <mx:OLAPHierarchy> tag inherits all of the tag attributes
of its superclass, and adds the following tag attributes:
<mx:OLAPHierarchy
Properties
allMemberName="(All)"
elements="An array of Levels of this hierarchy"
hasAll="true|false"
name="No default"
/>
默认 MXML 属性elements
另请参见
| 属性 | 定义方 | ||
|---|---|---|---|
| allMemberName : String 层次结构的所有成员的名称。 | OLAPHierarchy | ||
| children : IList [只读 (read-only)] 所有成员的子级别,作为 IOLAPMember 实例列表。 | OLAPHierarchy | ||
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
| defaultMember : IOLAPMember [只读 (read-only)] 层次结构的默认成员。 | OLAPHierarchy | ||
![]() | dimension : IOLAPDimension 此元素所属的维度。 | OLAPElement | |
![]() | displayName : String OLAP 元素的名称,可作为 String 显示。 | OLAPElement | |
| elements : Array [只写] 层次结构层次的数组,作为 OLAPLevel 实例。 | OLAPHierarchy | ||
| hasAll : Boolean 指定层次结构是否具有所有成员,如果具有,则为 true,否则为 false。 | OLAPHierarchy | ||
| levels : IList 此层次机构的所有级别,作为 IOLAPLevel 实例列表。 | OLAPHierarchy | ||
| members : IList [只读 (read-only)] 属于此层次结构的所有级别的所有成员,作为 IOLAPMember 实例列表。 | OLAPHierarchy | ||
| name : String 用户定义的此层次结构的名称。 | OLAPHierarchy | ||
![]() | prototype : Object [静态]
对类或函数对象的原型对象的引用。 | Object | |
![]() | uniqueName : String [只读 (read-only)] 多维数据集中 OLAP 元素的唯一名称。 | OLAPElement | |
| 方法 | 定义方 | ||
|---|---|---|---|
构造函数 | OLAPHierarchy | ||
返回层次结构中具有给定名称的级别。 | OLAPHierarchy | ||
返回层次结构中具有给定名称的成员。 | OLAPHierarchy | ||
![]() |
指示对象是否已经定义了指定的属性。 | Object | |
![]() |
指示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
指示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() | 返回该元素的唯一名称。 | OLAPElement | |
![]() |
返回指定对象的原始值。 | Object | |
| allMemberName | 属性 |
allMemberName:String [读写] 层次结构的所有成员的名称。
默认值为 "(All)".
public function get allMemberName():String public function set allMemberName(value:String):void| children | 属性 |
children:IList [只读 (read-only)] 所有成员的子级别,作为 IOLAPMember 实例列表。
public function get children():IList| defaultMember | 属性 |
defaultMember:IOLAPMember [只读 (read-only)] 层次结构的默认成员。如果使用所需成员的层次机构,则需要使用默认成员。
public function get defaultMember():IOLAPMember| elements | 属性 |
| hasAll | 属性 |
hasAll:Boolean [读写]
指定层次结构是否具有所有成员,如果具有,则为 true,否则为 false。如果为 true,则所有成员名称由 allMemberName 属性指定。
默认值为 true.
public function get hasAll():Boolean public function set hasAll(value:Boolean):void| levels | 属性 |
levels:IList [读写] 此层次机构的所有级别,作为 IOLAPLevel 实例列表。返回的列表可能表示远程数据,因此可以引发 ItemPendingError。
public function get levels():IList public function set levels(value:IList):void| members | 属性 |
members:IList [只读 (read-only)] 属于此层次结构的所有级别的所有成员,作为 IOLAPMember 实例列表。返回的列表可能表示远程数据,因此可以引发 ItemPendingError。
public function get members():IList| name | 属性 |
name:String [读写] 用户定义的此层次结构的名称。如果用户尚未显式设置名称,则会返回维度名称。
public function get name():String public function set name(value:String):void| OLAPHierarchy | () | 构造函数 |
public function OLAPHierarchy(name:String = null, displayName:String = null)构造函数
参数name:String (default = null) — 包括元素的 OLAP 架构层次结构的 OLAP 层次的名称。 | |
displayName:String (default = null) — OLAP 导次的名称,可作为 String 显示。 |
| findLevel | () | 方法 |
public function findLevel(name:String):IOLAPLevel返回层次结构中具有给定名称的级别。
参数
name:String — 级别的名称。 |
IOLAPLevel — IOLAPLevel 实例,表示级别,或者如果未找到级别则为 null。 |
| findMember | () | 方法 |
public function findMember(name:String):IOLAPMember返回层次结构中具有给定名称的成员。
参数
name:String — 该成员的名称。 |
IOLAPMember — IOLAPMember 实例,表示成员,或者如果未找到成员则为 null。 |