001 /* 002 // $Id: ScalarType.java 229 2009-05-08 19:11:29Z jhyde $ 003 // This software is subject to the terms of the Eclipse Public License v1.0 004 // Agreement, available at the following URL: 005 // http://www.eclipse.org/legal/epl-v10.html. 006 // Copyright (C) 2005-2008 Julian Hyde 007 // All Rights Reserved. 008 // You must accept the terms of that agreement to use this software. 009 */ 010 package org.olap4j.type; 011 012 import org.olap4j.metadata.Dimension; 013 import org.olap4j.metadata.Hierarchy; 014 import org.olap4j.metadata.Level; 015 016 /** 017 * Base class for types which represent scalar values. 018 * 019 * <p>An instance of this class means a scalar value of unknown type. 020 * Usually one of the derived classes {@link NumericType}, 021 * {@link StringType}, {@link BooleanType} is used instead. 022 * 023 * @author jhyde 024 * @since Feb 17, 2005 025 * @version $Id: ScalarType.java 229 2009-05-08 19:11:29Z jhyde $ 026 */ 027 public class ScalarType implements Type { 028 public boolean usesDimension(Dimension dimension, boolean maybe) { 029 return false; 030 } 031 032 public Hierarchy getHierarchy() { 033 return null; 034 } 035 036 public Level getLevel() { 037 return null; 038 } 039 040 public Dimension getDimension() { 041 return null; 042 } 043 } 044 045 // End ScalarType.java