//////////////////////////////////////////////////////////////////////////////// // // ADOBE SYSTEMS INCORPORATED // Copyright 2009 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // //////////////////////////////////////////////////////////////////////////////// package mx.olap { import mx.collections.IList; /** * The IOLAPSet interface represents a set, * which is used to configure the axis of an OLAP query. * * @see mx.olap.OLAPSet * @see mx.olap.OLAPQueryAxis * @see mx.olap.IOLAPResultAxis * @see mx.olap.OLAPResultAxis * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public interface IOLAPSet { //-------------------------------------------------------------------------- // // Methods // //-------------------------------------------------------------------------- /** * Adds a new member to the set. * *
This method adds the appropriate elements to the set, * depending on the type of element passed in. * If an IOLAPHierarchy element is passed, it adds the default member of the hierarchy. * If an IOLAPLevel element is passed, it adds all the members of the level. * If an IOLAPMember element is passed, it is added to the set.
* * @param element The member to add. * Ifelement is a hierarchy or level, its members
* are added. If element is an instance of IOLAPMember,
* it is added directly.
* A new tuple is created for each member.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function addElement(element:IOLAPElement):void
/**
* Adds a list of members to the set.
* This method can be called when members or children of a hierarchy
* or member need to be added to the set.
*
* @param element The members to add, as a list of IOLAPMember instances.
* A new tuple is created for each member.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function addElements(elements:IList):void
/**
* Adds a new tuple to the set.
*
* @param tuple The tuple to add.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function addTuple(tuple:IOLAPTuple):void;
/**
* Returns a new IOLAPSet instance that contains a crossjoin of this
* IOLAPSet instance and input.
*
* @param input An IOLAPSet instance.
*
* @return An IOLAPSet instance that contains a crossjoin of this
* IOLAPSet instance and input.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function crossJoin(input:IOLAPSet):IOLAPSet;
/**
* Returns a new IOLAPSet that is hierarchized version
* of this set.
*
* @param post If true indicates that children should precede parents.
* By default, parents precede children.
*
* @return A new IOLAPSet that is hierarchized version
* of this set.
*
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function hierarchize(post:Boolean=false):IOLAPSet;
/**
* Returns a new IOLAPSet instance that contains a union of this
* IOLAPSet instance and input.
*
* @param input An IOLAPSet instance.
*
* @return An IOLAPSet instance that contains a union of this
* IOLAPSet instance and input.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
function union(input:IOLAPSet/*, keepDuplicates:Boolean=false*/):IOLAPSet;
}
}