common-util

local.tomas.expr
Enum ExpressionType

java.lang.Object
  extended by java.lang.Enum<ExpressionType>
      extended by local.tomas.expr.ExpressionType
All Implemented Interfaces:
Serializable, Comparable<ExpressionType>

public enum ExpressionType
extends Enum<ExpressionType>

Constants for data types.

Author:
Teubner

Enum Constant Summary
BOOLEAN
          boolean
DATE
          date
DATETIME
          date and time
DECIMAL
          decimal
ID
          unique Id
INTEGER
          integer
STRING
          string
TIME
          time
 
Method Summary
static ExpressionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExpressionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INTEGER

public static final ExpressionType INTEGER
integer


STRING

public static final ExpressionType STRING
string


DECIMAL

public static final ExpressionType DECIMAL
decimal


DATE

public static final ExpressionType DATE
date


TIME

public static final ExpressionType TIME
time


DATETIME

public static final ExpressionType DATETIME
date and time


ID

public static final ExpressionType ID
unique Id


BOOLEAN

public static final ExpressionType BOOLEAN
boolean

Method Detail

values

public static ExpressionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ExpressionType c : ExpressionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ExpressionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

common-util

Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.