Enum DateMatch.TimeResolution
- java.lang.Object
-
- java.lang.Enum<DateMatch.TimeResolution>
-
- org.opensextant.extractors.xtemporal.DateMatch.TimeResolution
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DateMatch.TimeResolution>
,java.lang.constant.Constable
- Enclosing class:
- DateMatch
public static enum DateMatch.TimeResolution extends java.lang.Enum<DateMatch.TimeResolution>
A simplistic way to capture resolution of the date/time reference.
-
-
Method Summary
Modifier and Type Method Description java.lang.String
toString()
static DateMatch.TimeResolution
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateMatch.TimeResolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DateMatch.TimeResolution NONE
-
YEAR
public static final DateMatch.TimeResolution YEAR
-
MONTH
public static final DateMatch.TimeResolution MONTH
-
WEEK
public static final DateMatch.TimeResolution WEEK
-
DAY
public static final DateMatch.TimeResolution DAY
-
HOUR
public static final DateMatch.TimeResolution HOUR
-
MINUTE
public static final DateMatch.TimeResolution MINUTE
-
SECOND
public static final DateMatch.TimeResolution SECOND
-
-
Method Detail
-
values
public static DateMatch.TimeResolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateMatch.TimeResolution 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DateMatch.TimeResolution>
-
-