KickJava   Java API By Example, From Geeks To Geeks.

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


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.Axis;
18 import com.tonbeller.jpivot.olap.model.Result;
19 import com.tonbeller.jpivot.olap.model.Visitor;
20
21 /**
22  * Created on 11.10.2002
23  *
24  * @author av
25  */

26 public class ResultImpl implements Result {
27
28   List JavaDoc cells;
29   Axis slicer;
30   Axis[] axes;
31   
32   /**
33    * Constructor for ResultImpl.
34    */

35   public ResultImpl() {
36     super();
37   }
38
39   /**
40    * Returns the axes.
41    * @return Axis[]
42    */

43   public Axis[] getAxes() {
44     return axes;
45   }
46
47   /**
48    * Returns the cells.
49    * @return List
50    */

51   public List JavaDoc getCells() {
52     return cells;
53   }
54
55   /**
56    * Returns the slicer.
57    * @return Axis
58    */

59   public Axis getSlicer() {
60     return slicer;
61   }
62
63   /**
64    * Sets the axes.
65    * @param axes The axes to set
66    */

67   public void setAxes(Axis[] axes) {
68     this.axes = axes;
69   }
70
71   /**
72    * Sets the cells.
73    * @param cells The cells to set
74    */

75   public void setCells(List JavaDoc cells) {
76     this.cells = cells;
77   }
78
79   /**
80    * Sets the slicer.
81    * @param slicer The slicer to set
82    */

83   public void setSlicer(Axis slicer) {
84     this.slicer = slicer;
85   }
86
87   public void accept(Visitor visitor) {
88     visitor.visitResult(this);
89   }
90
91   
92   public Object JavaDoc getRootDecoree() {
93     return this;
94   }
95
96   public boolean isOverflowOccured() {
97     return false;
98   }
99
100 }
101
Popular Tags