com.tonbeller.jpivot.test.olap
Class TestPlaceMembersOnAxes

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.test.olap.TestExtensionSupport
          extended by com.tonbeller.jpivot.test.olap.TestPlaceHierarchiesOnAxes
              extended by com.tonbeller.jpivot.test.olap.TestPlaceMembersOnAxes
All Implemented Interfaces:
Extension, PlaceHierarchiesOnAxes, PlaceMembersOnAxes

public class TestPlaceMembersOnAxes
extends TestPlaceHierarchiesOnAxes
implements PlaceMembersOnAxes

Created on 13.12.2002

Author:
av

Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.olap.navi.PlaceMembersOnAxes
ID
 
Constructor Summary
TestPlaceMembersOnAxes()
           
 
Method Summary
 java.lang.Object createMemberExpression(java.util.List members)
          creates an expression that selects members.
 java.util.List findVisibleMembers(Hierarchy hier)
          collects all members from the visible axes in the result.
 
Methods inherited from class com.tonbeller.jpivot.test.olap.TestPlaceHierarchiesOnAxes
createMemberExpression, getExpandAllMember, setExpandAllMember, setQueryAxis, setSlicer
 
Methods inherited from class com.tonbeller.jpivot.test.olap.TestExtensionSupport
fireModelChanged, model
 
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport
decorate, getId, getModel, modelInitialized, setId, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tonbeller.jpivot.olap.navi.PlaceHierarchiesOnAxes
createMemberExpression, getExpandAllMember, setExpandAllMember, setQueryAxis
 
Methods inherited from interface com.tonbeller.jpivot.core.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

TestPlaceMembersOnAxes

public TestPlaceMembersOnAxes()
Method Detail

createMemberExpression

public java.lang.Object createMemberExpression(java.util.List members)
Description copied from interface: PlaceMembersOnAxes
creates an expression that selects members. In MDX this would be an enumeration of the members within { ... }

If a memberExpression returned by this method is placed on an axis, sorting should be disabled. If sorting was not disabled, the explicit order or the members would not be visible to the user.

Specified by:
createMemberExpression in interface PlaceMembersOnAxes
Parameters:
members - a List of Members
Returns:
a member expression that can be used with super.setAxis
See Also:
PlaceMembersOnAxes.createMemberExpression(List)

findVisibleMembers

public java.util.List findVisibleMembers(Hierarchy hier)
Description copied from interface: PlaceMembersOnAxes
collects all members from the visible axes in the result. If no members of the hierarchy are on a visible axis, returns an empty list.

Specified by:
findVisibleMembers in interface PlaceMembersOnAxes
Parameters:
hier - the Hierarchy
Returns:
A list of Members
See Also:
PlaceMembersOnAxes.findVisibleMembers(Hierarchy)