KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > query > PositionBase


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.query;
14
15 import java.util.List JavaDoc;
16
17 import com.tonbeller.jpivot.olap.model.Member;
18 import com.tonbeller.jpivot.olap.model.Position;
19 import com.tonbeller.jpivot.olap.model.Visitor;
20
21 /**
22  * base class for both Mondrian and XMLA Position
23  */

24 public class PositionBase implements Position {
25
26   protected Member[] members;
27
28   // cellList, parent and number are temp variables used by hierarchize sort
29
public List JavaDoc cellList = null;
30   public PositionBase parent = null;
31   public int number;
32
33   /*
34    * @return array of members
35    * @see com.tonbeller.jpivot.olap.model.Position#getMembers()
36    */

37   public Member[] getMembers() {
38     return members;
39   }
40   
41
42   /* (non-Javadoc)
43    * @see com.tonbeller.jpivot.olap.model.Visitable#accept
44    */

45   public void accept(Visitor visitor) {
46     visitor.visitPosition(this);
47   }
48
49   /*
50    * @see com.tonbeller.jpivot.olap.model.Decorator#getRootDecoree()
51    */

52   public Object JavaDoc getRootDecoree() {
53     return this;
54   }
55
56 } // PositionBase
57
Popular Tags