KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/type/ScalarType.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.Dimension;
13 import mondrian.olap.Hierarchy;
14 import mondrian.olap.Level;
15
16 /**
17  * Base class for types which represent scalar values.
18  *
19  * <p>An instance of this class means a scalar value of unknown type.
20  * Usually one of the derived classes {@link NumericType},
21  * {@link StringType}, {@link BooleanType} is used instead.
22  *
23  * @author jhyde
24  * @since Feb 17, 2005
25  * @version $Id: //open/mondrian/src/main/mondrian/olap/type/ScalarType.java#4 $
26  */

27 public class ScalarType implements Type {
28     public boolean usesDimension(Dimension dimension, boolean maybe) {
29         return false;
30     }
31
32     public Hierarchy getHierarchy() {
33         return null;
34     }
35
36     public Level getLevel() {
37         return null;
38     }
39
40     public Dimension getDimension() {
41         return null;
42     }
43 }
44
45 // End ScalarType.java
46
Popular Tags