KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > olap > type > CubeType


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/type/CubeType.java#4 $
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) 2005-2006 Julian Hyde
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.olap.type;
11
12 import mondrian.olap.Cube;
13 import mondrian.olap.Dimension;
14 import mondrian.olap.Hierarchy;
15 import mondrian.olap.Level;
16
17 /**
18  * The type of an expression which represents a Cube or Virtual Cube.
19  *
20  * @author jhyde
21  * @since Feb 17, 2005
22  * @version $Id: //open/mondrian/src/main/mondrian/olap/type/CubeType.java#4 $
23  */

24 public class CubeType implements Type {
25     private final Cube cube;
26
27     /**
28      * Creates a type representing a cube.
29      */

30     public CubeType(Cube cube) {
31         this.cube = cube;
32     }
33
34     public boolean usesDimension(Dimension dimension, boolean maybe) {
35         return false;
36     }
37
38     public Dimension getDimension() {
39         return null;
40     }
41
42     public Hierarchy getHierarchy() {
43         return null;
44     }
45
46     public Level getLevel() {
47         return null;
48     }
49 }
50
51 // End CubeType.java
52
Popular Tags