org.olap4j.type
Class TypeUtil

java.lang.Object
  extended by org.olap4j.type.TypeUtil

public class TypeUtil
extends Object

Utility methods relating to types.

NOTE: This class is experimental. Not part of the public olap4j API.

Since:
Feb 17, 2005
Version:
$Id: TypeUtil.java 482 2012-01-05 23:27:27Z jhyde $
Author:
jhyde

Constructor Summary
TypeUtil()
           
 
Method Summary
static boolean canEvaluate(Type type)
          Returns whether a value of a given type can be evaluated to a scalar value.
static boolean isSet(Type type)
          Returns whether a type is a set type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeUtil

public TypeUtil()
Method Detail

canEvaluate

public static boolean canEvaluate(Type type)
Returns whether a value of a given type can be evaluated to a scalar value.

The rules are as follows:

Parameters:
type - Type
Returns:
Whether an expression of this type can be evaluated to yield a scalar value.

isSet

public static boolean isSet(Type type)
Returns whether a type is a set type.

Parameters:
type - Type
Returns:
Whether a value of this type can be evaluated to yield a set.

SourceForge.net_Logo