org.opengts.util
Enum DateTime.DefaultParsedTime
java.lang.Object
java.lang.Enum<DateTime.DefaultParsedTime>
org.opengts.util.DateTime.DefaultParsedTime
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DateTime.DefaultParsedTime>
- Enclosing class:
- DateTime
public static enum DateTime.DefaultParsedTime
- extends java.lang.Enum<DateTime.DefaultParsedTime>
Enum indicating how to handle parsed dates when no time is specified
CurrentTime - Use current time
ContextStart - Use start of time context (ie. day, month, year)
ContextEnd - Use end of time context (ie. day, month, year)
DayStart - Use start of day
DayEnd - Use end day
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 |
CurrentTime
public static final DateTime.DefaultParsedTime CurrentTime
ContextStart
public static final DateTime.DefaultParsedTime ContextStart
ContextEnd
public static final DateTime.DefaultParsedTime ContextEnd
DayStart
public static final DateTime.DefaultParsedTime DayStart
DayEnd
public static final DateTime.DefaultParsedTime DayEnd
values
public static DateTime.DefaultParsedTime[] 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 (DateTime.DefaultParsedTime c : DateTime.DefaultParsedTime.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DateTime.DefaultParsedTime 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
java.lang.NullPointerException
- if the argument is null