Package org.n52.shetland.ogc.gml.time
Enum Time.TimeFormat
- java.lang.Object
-
- java.lang.Enum<Time.TimeFormat>
-
- org.n52.shetland.ogc.gml.time.Time.TimeFormat
-
- All Implemented Interfaces:
Serializable,Comparable<Time.TimeFormat>
- Enclosing class:
- Time
public static enum Time.TimeFormat extends Enum<Time.TimeFormat>
Enum for time formats
ISO8601- full ISO 8601 format
Y- only year
YM- year, month
YMD- year, month, day
{v #NOT_SET} - not defined- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static Collection<Time.TimeFormat>SUPPORTED_FORMATS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Time.TimeFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static Time.TimeFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISO8601
public static final Time.TimeFormat ISO8601
-
YMD
public static final Time.TimeFormat YMD
-
YM
public static final Time.TimeFormat YM
-
Y
public static final Time.TimeFormat Y
-
NOT_SET
public static final Time.TimeFormat NOT_SET
-
-
Field Detail
-
SUPPORTED_FORMATS
public static final Collection<Time.TimeFormat> SUPPORTED_FORMATS
-
-
Method Detail
-
values
public static Time.TimeFormat[] 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 (Time.TimeFormat c : Time.TimeFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Time.TimeFormat 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 nameNullPointerException- if the argument is null
-
-