KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > mondrian > MondrianMemberSetBean


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 /*
14  * Used by old memento (MDX Generation version 2)
15  * HHTASK: remove, when old Bookmarks are replaced
16  */

17 package com.tonbeller.jpivot.mondrian;
18
19 import java.io.Serializable JavaDoc;
20
21 /**
22  * Java Bean object to hold the state of MondrianMemberSet.
23  * Used for serialization of MondrianModel via MondrianMemento.
24  * Referenced by MondrianQuaxBean.
25  */

26 public class MondrianMemberSetBean implements Serializable JavaDoc {
27   int type;
28   String JavaDoc level;
29   String JavaDoc[] memberList;
30   String JavaDoc[] drillDownList;
31
32   /**
33    * Get level.
34    * @return level
35    */

36   public String JavaDoc getLevel() {
37     return level;
38   }
39
40   /**
41    * Get memberList.
42    * @return memberList
43    */

44   public String JavaDoc[] getMemberList() {
45     return memberList;
46   }
47
48   /**
49    * Get type.
50    * @return type
51    */

52   public int getType() {
53     return type;
54   }
55
56   /**
57    * Set level.
58    * @param string
59    */

60   public void setLevel(String JavaDoc level) {
61     this.level = level;
62   }
63
64   /**
65    * Set memberList.
66    * @param memberList
67    */

68   public void setMemberList(String JavaDoc[] memberList) {
69     this.memberList = memberList;
70   }
71
72   /**
73    * Set type.
74    * @param i
75    */

76   public void setType(int type) {
77     this.type = type;
78   }
79
80   /**
81    * Get drillDownList.
82    * @return drillDownList
83    */

84   public String JavaDoc[] getDrillDownList() {
85     if (drillDownList != null)
86       return drillDownList;
87     else
88       return new String JavaDoc[0];
89   }
90
91   /**
92    * Set drillDownList.
93    * @param drillDownList
94    */

95   public void setDrillDownList(String JavaDoc[] drillDownList) {
96     this.drillDownList = drillDownList;
97   }
98
99 } // End MondrianMemberSetBean
100
Popular Tags