com.tonbeller.jpivot.test.olap
Class TestMemberTree

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.test.olap.TestMemberTree
All Implemented Interfaces:
Extension, MemberTree

public class TestMemberTree
extends ExtensionSupport
implements MemberTree

Created on 22.10.2002

Author:
av

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.tonbeller.jpivot.olap.navi.MemberTree
MemberTree.TooManyMembersException
 
Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.olap.navi.MemberTree
ID
 
Constructor Summary
TestMemberTree()
           
 
Method Summary
 Member[] getChildren(Member member)
           
 Member getParent(Member member)
           
 Member[] getRootMembers(Hierarchy hier)
           
 boolean hasChildren(Member member)
           
 
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.core.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

TestMemberTree

public TestMemberTree()
Method Detail

getRootMembers

public Member[] getRootMembers(Hierarchy hier)
Specified by:
getRootMembers in interface MemberTree
Returns:
the root members of a hierarchy. This is for example the "All" member or the list of measures.
See Also:
MemberTree.getRootMembers(Hierarchy)

hasChildren

public boolean hasChildren(Member member)
Specified by:
hasChildren in interface MemberTree
Returns:
true if the member can be expanded
See Also:
MemberTree.hasChildren(Member)

getChildren

public Member[] getChildren(Member member)
Specified by:
getChildren in interface MemberTree
Returns:
the children of the member
See Also:
MemberTree.getChildren(Member)

getParent

public Member getParent(Member member)
Specified by:
getParent in interface MemberTree
Returns:
the parent of member or null, if this is a root member
See Also:
MemberTree.getParent(Member)