KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > model > impl > MemberImpl


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.olap.model.impl;
14
15 import java.util.List JavaDoc;
16
17 import com.tonbeller.jpivot.olap.model.Level;
18 import com.tonbeller.jpivot.olap.model.Member;
19 import com.tonbeller.jpivot.olap.model.Property;
20 import com.tonbeller.jpivot.olap.model.Visitor;
21
22 /**
23  * Created on 11.10.2002
24  *
25  * @author av
26  */

27 public class MemberImpl extends PropertyHolderImpl implements Member {
28
29   Level level;
30   int rootDistance;
31   String JavaDoc label;
32
33   public MemberImpl() {
34   }
35
36   public MemberImpl(Property[] properties) {
37     super(properties);
38   }
39
40   public MemberImpl(List JavaDoc propertyList) {
41     super(propertyList);
42   }
43
44   /**
45    * Returns the rootDistance.
46    * @return int
47    */

48   public int getRootDistance() {
49     return rootDistance;
50   }
51
52   /**
53    * Sets the rootDistance.
54    * @param rootDistance The rootDistance to set
55    */

56   public void setRootDistance(int rootDistance) {
57     this.rootDistance = rootDistance;
58   }
59
60   /**
61    * Returns the level.
62    * @return Level
63    */

64   public Level getLevel() {
65     return level;
66   }
67
68   /**
69    * Sets the level.
70    * @param level The level to set
71    */

72   public void setLevel(Level level) {
73     this.level = level;
74   }
75
76   public Object JavaDoc getRootDecoree() {
77     return this;
78   }
79
80   public void accept(Visitor visitor) {
81     visitor.visitMember(this);
82   }
83
84   /**
85    * Returns the label.
86    * @return String
87    */

88   public String JavaDoc getLabel() {
89     return label;
90   }
91
92   /**
93    * Sets the label.
94    * @param label The label to set
95    */

96   public void setLabel(String JavaDoc label) {
97     this.label = label;
98   }
99
100   public boolean isAll() {
101     return false;
102   }
103
104   public boolean isCalculated() {
105      return false;
106   }
107
108 }
109
Popular Tags