SMILA (incubation) API documentation

org.eclipse.smila.datamodel.record
Enum Literal.DataType

java.lang.Object
  extended by java.lang.Enum<Literal.DataType>
      extended by org.eclipse.smila.datamodel.record.Literal.DataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Literal.DataType>
Enclosing interface:
Literal

public static enum Literal.DataType
extends java.lang.Enum<Literal.DataType>

Enumeration of supported data types.


Enum Constant Summary
BOOL
          Boolean values: represented by Boolean objects.
DATE
          Date values: represented by java.util.Date objects.
DATETIME
          Date&Time values: represented by java.util.Date objects.
FP
          Floating point values: represented by Double objects.
INT
          Integer (fixed point) values: represented by Long objects.
STRING
          String values_ represented by String objects.
TIME
          Time values: represented by java.util.Date objects.
 
Method Summary
static Literal.DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Literal.DataType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final Literal.DataType STRING
String values_ represented by String objects.


INT

public static final Literal.DataType INT
Integer (fixed point) values: represented by Long objects.


FP

public static final Literal.DataType FP
Floating point values: represented by Double objects.


BOOL

public static final Literal.DataType BOOL
Boolean values: represented by Boolean objects.


DATE

public static final Literal.DataType DATE
Date values: represented by java.util.Date objects.


TIME

public static final Literal.DataType TIME
Time values: represented by java.util.Date objects.


DATETIME

public static final Literal.DataType DATETIME
Date&Time values: represented by java.util.Date objects.

Method Detail

values

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

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

valueOf

public static Literal.DataType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

SMILA (incubation) API documentation