com.sas.swing.visuals.olaptableview
Class OLAPDrillStateUtil

com.sas.swing.visuals.olaptableview.OLAPDrillStateUtil

public class OLAPDrillStateUtil


Field Summary
static int DIMENSION
           
static int HIERARCHY
           
static int NONE
           
 
Constructor Summary
OLAPDrillStateUtil()
           
 
Method Summary
static java.util.List getAncestorAxisHeaders(TupleElementInterface element, OLAPDataSetInterface model)
          Returns a List containing the elements axis header labels for the specified element and its ancestors: The returned List will be empty if the specified element or model is null, or if the element has no ancestors.
static java.util.List getAncestorInfo(TupleElementInterface element, OLAPDataSetInterface model, boolean includeAllMember)
          Returns a List containing the following six items describing the specified element and its ancestors: The label of the dimension that contains the specified element The label of the hierarchy that contains the specified element Boolean.TRUE if the top Level of the Dimension containing the specified element is an "All" level, otherwise BOOLEAN.FALSE A List containing the element's ancestor labels A List containing the element's ancestor unique names The element The returned List will be empty if the specified element or model is null, or if the element has no ancestors.
static java.util.List getOLAPDrillStateInfo(OLAPDataSetInterface model, boolean includeAllMember)
           
static java.util.List getOLAPDrillStateInfo(OLAPDataSetInterface model, boolean includeAllMember, boolean useCachedTuples)
           
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

DIMENSION

public static final int DIMENSION
See Also:
Constant Field Values

HIERARCHY

public static final int HIERARCHY
See Also:
Constant Field Values
Constructor Detail

OLAPDrillStateUtil

public OLAPDrillStateUtil()
Method Detail

getOLAPDrillStateInfo

public static java.util.List getOLAPDrillStateInfo(OLAPDataSetInterface model,
                                                   boolean includeAllMember)

getOLAPDrillStateInfo

public static java.util.List getOLAPDrillStateInfo(OLAPDataSetInterface model,
                                                   boolean includeAllMember,
                                                   boolean useCachedTuples)

getAncestorInfo

public static java.util.List getAncestorInfo(TupleElementInterface element,
                                             OLAPDataSetInterface model,
                                             boolean includeAllMember)
Returns a List containing the following six items describing the specified element and its ancestors:
  1. The label of the dimension that contains the specified element
  2. The label of the hierarchy that contains the specified element
  3. Boolean.TRUE if the top Level of the Dimension containing the specified element is an "All" level, otherwise BOOLEAN.FALSE
  4. A List containing the element's ancestor labels
  5. A List containing the element's ancestor unique names
  6. The element

The returned List will be empty if the specified element or model is null, or if the element has no ancestors.


getAncestorAxisHeaders

public static java.util.List getAncestorAxisHeaders(TupleElementInterface element,
                                                    OLAPDataSetInterface model)
Returns a List containing the elements axis header labels for the specified element and its ancestors: The returned List will be empty if the specified element or model is null, or if the element has no ancestors.

Parameters:
element - the tuple element to try the info for it's ancestors
model - the OLAP model instance
Returns:
a List containing the strings for the axis header labels



Copyright © 2009 SAS Institute Inc. All Rights Reserved.