csheets.core
Enum Value.Type

java.lang.Object
  extended by java.lang.Enum<Value.Type>
      extended by csheets.core.Value.Type
All Implemented Interfaces:
Serializable, Comparable<Value.Type>
Enclosing class:
Value

public static enum Value.Type
extends Enum<Value.Type>

The recognized types of values


Enum Constant Summary
BOOLEAN
          Denotes a boolean value, i.e. true or false
DATE
          Denotes a date, time or date/time value
ERROR
          Denotes an error, e.g. a type mismatch
MATRIX
          Denotes a row vector, column vector or two-dimensional matrix of values
NUMERIC
          Denotes a numeric value, with or without decimals
TEXT
          Denotes a text value, or a type of value derived from text
UNDEFINED
          Denotes a value of undefined type
 
Method Summary
static Value.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Value.Type[] 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

UNDEFINED

public static final Value.Type UNDEFINED
Denotes a value of undefined type


NUMERIC

public static final Value.Type NUMERIC
Denotes a numeric value, with or without decimals


TEXT

public static final Value.Type TEXT
Denotes a text value, or a type of value derived from text


BOOLEAN

public static final Value.Type BOOLEAN
Denotes a boolean value, i.e. true or false


DATE

public static final Value.Type DATE
Denotes a date, time or date/time value


MATRIX

public static final Value.Type MATRIX
Denotes a row vector, column vector or two-dimensional matrix of values


ERROR

public static final Value.Type ERROR
Denotes an error, e.g. a type mismatch

Method Detail

values

public static final Value.Type[] 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(Value.Type c : Value.Type.values())
        System.out.println(c);

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

valueOf

public static Value.Type 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