blob: 58e75c99dc6b2e318170954812ec9ccc1aadec6b [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package mx.olap
{
import mx.collections.IList;
/**
* The IOLAPLevel interface represents a level within the OLAP schema of an OLAP cube,
* where a hierarchy of a dimension contains one or more levels.
*.
* @see mx.olap.OLAPLevel
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
public interface IOLAPLevel extends IOLAPElement
{
//--------------------------------------------------------------------------
//
// Properties
//
//--------------------------------------------------------------------------
//----------------------------------
// child
//----------------------------------
/**
* The next child level in the hierarchy.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get child():IOLAPLevel;
//----------------------------------
// depth
//----------------------------------
/**
* The depth of the level in the hierarchy of the dimension.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get depth():int;
//----------------------------------
// hierarchy
//----------------------------------
/**
* The hierarchy of the dimension to which this level belongs.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get hierarchy():IOLAPHierarchy;
//----------------------------------
// parent
//----------------------------------
/**
* The parent level of this level, or null if this level is not nested in another level.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get parent():IOLAPLevel;
//----------------------------------
// members
//----------------------------------
/**
* The members of this level, as a list of IOLAPMember instances,
* or null if a member is not found.
*
* The list might represent remote data and therefore can throw
* an ItemPendingError.
*
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function get members():IList; //of IOLAPMembers
//--------------------------------------------------------------------------
//
// Methods
//
//--------------------------------------------------------------------------
/**
* Returns the members with the given name within the hierarchy.
*
* @param name The name of the member.
*
* @return A list of IOLAPMember instances representing the members,
* or null if a member is not found.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function findMember(name:String):IList;
}
}