KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > test > olap > TestMember


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.jpivot.test.olap;
14
15 import java.util.ArrayList JavaDoc;
16
17 import com.tonbeller.jpivot.olap.model.impl.MemberImpl;
18
19 /**
20  * Created on 22.10.2002
21  *
22  * @author av
23  */

24 public class TestMember extends MemberImpl {
25   TestMember parentMember;
26   ArrayList JavaDoc childMember = new ArrayList JavaDoc();
27   boolean visible;
28
29   /**
30    * Returns the childMember.
31    * @return ArrayList
32    */

33   public ArrayList JavaDoc getChildMember() {
34     return childMember;
35   }
36
37   /**
38    * Returns the parentMember.
39    * @return TestMember
40    */

41   public TestMember getParentMember() {
42     return parentMember;
43   }
44
45   public void addChildMember(TestMember member) {
46     member.setParentMember(this);
47     childMember.add(member);
48   }
49
50   public boolean hasChildren() {
51     return childMember.size() > 0;
52   }
53   
54   /**
55    * Sets the parentMember.
56    * @param parentMember The parentMember to set
57    */

58   public void setParentMember(TestMember parentMember) {
59     this.parentMember = parentMember;
60   }
61
62
63   /**
64    * Returns the visible.
65    * @return boolean
66    */

67   public boolean isVisible() {
68     return visible;
69   }
70
71   /**
72    * Sets the visible.
73    * @param visible The visible to set
74    */

75   public void setVisible(boolean visible) {
76     this.visible = visible;
77   }
78
79 }
80
Popular Tags