com.teraspaces.qwframework
Enum DateTimeKind

java.lang.Object
  extended by java.lang.Enum<DateTimeKind>
      extended by com.teraspaces.qwframework.DateTimeKind
All Implemented Interfaces:
Serializable, Comparable<DateTimeKind>

public enum DateTimeKind
extends Enum<DateTimeKind>

Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.


Enum Constant Summary
Local
          The time represented is local time.
Unspecified
          The time represented is not specified as either local time or Coordinated Universal Time (UTC).
Utc
          The time represented is UTC.
 
Method Summary
static DateTimeKind fromOrdinal(int value)
          Get a DateTimeKind of its ordinal value.
static DateTimeKind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DateTimeKind[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Unspecified

public static final DateTimeKind Unspecified
The time represented is not specified as either local time or Coordinated Universal Time (UTC).


Utc

public static final DateTimeKind Utc
The time represented is UTC.


Local

public static final DateTimeKind Local
The time represented is local time.

Method Detail

values

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

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

valueOf

public static DateTimeKind 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

fromOrdinal

public static DateTimeKind fromOrdinal(int value)
Get a DateTimeKind of its ordinal value.

Parameters:
value - the ordinal value, must be 0, 1, or 2
Returns:
the date time kind