KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > model > Member


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;
14
15
16
17 /**
18  * OLAP Member.
19  * Member may have properties, e.g. a customer may have a phone number.
20  * @author av
21  */

22 public interface Member extends Expression, PropertyHolder, Visitable, Displayable, Decorator {
23
24   /**
25    * returns the distance from the root member of the hierarchy.
26    * This is used to compute indentation.
27    * @return 0 for the root member(s), > 0 else
28    */

29   int getRootDistance();
30   
31   /**
32    * get the level to which this member belongs.
33    * @return not null
34    */

35   Level getLevel();
36   
37   /**
38    * allows to compare members from the current result and the previous
39    * result.
40    */

41   boolean equals(Object JavaDoc other);
42   
43   /**
44    * @return true, if the member is an "All" member
45    */

46   boolean isAll();
47  
48   /**
49    * an OLAP Member may be calculated i.e. derived from original members
50    * @return true,if the member is calculated
51    */

52   boolean isCalculated();
53 }
54
Popular Tags