edu.stanford.nlp.time
Enum SUTime.StandardTemporalType

java.lang.Object
  extended by java.lang.Enum<SUTime.StandardTemporalType>
      extended by edu.stanford.nlp.time.SUTime.StandardTemporalType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SUTime.StandardTemporalType>
Enclosing class:
SUTime

public static enum SUTime.StandardTemporalType
extends java.lang.Enum<SUTime.StandardTemporalType>


Enum Constant Summary
DAY_OF_WEEK
           
DAY_OF_YEAR
           
DAYS_OF_WEEK
           
MONTH_OF_YEAR
           
PART_OF_YEAR
           
QUARTER_OF_YEAR
           
REFDATE
           
REFTIME
           
SEASON_OF_YEAR
           
TIME_OF_DAY
           
WEEK_OF_YEAR
           
 
Method Summary
protected  SUTime.Temporal _createTemporal(int n)
           
 SUTime.Temporal create(Expressions.CompositeValue compositeValue)
           
 SUTime.Temporal createTemporal(int n)
           
 SUTime.Duration getDuration()
           
 SUTime.Duration getGranularity()
           
 SUTime.Duration getPeriod()
           
 SUTime.TimexType getTimexType()
           
static SUTime.StandardTemporalType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SUTime.StandardTemporalType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

REFDATE

public static final SUTime.StandardTemporalType REFDATE

REFTIME

public static final SUTime.StandardTemporalType REFTIME

TIME_OF_DAY

public static final SUTime.StandardTemporalType TIME_OF_DAY

DAY_OF_YEAR

public static final SUTime.StandardTemporalType DAY_OF_YEAR

DAY_OF_WEEK

public static final SUTime.StandardTemporalType DAY_OF_WEEK

DAYS_OF_WEEK

public static final SUTime.StandardTemporalType DAYS_OF_WEEK

WEEK_OF_YEAR

public static final SUTime.StandardTemporalType WEEK_OF_YEAR

MONTH_OF_YEAR

public static final SUTime.StandardTemporalType MONTH_OF_YEAR

PART_OF_YEAR

public static final SUTime.StandardTemporalType PART_OF_YEAR

SEASON_OF_YEAR

public static final SUTime.StandardTemporalType SEASON_OF_YEAR

QUARTER_OF_YEAR

public static final SUTime.StandardTemporalType QUARTER_OF_YEAR
Method Detail

values

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

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

valueOf

public static SUTime.StandardTemporalType 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

getTimexType

public SUTime.TimexType getTimexType()

getDuration

public SUTime.Duration getDuration()

getPeriod

public SUTime.Duration getPeriod()

getGranularity

public SUTime.Duration getGranularity()

_createTemporal

protected SUTime.Temporal _createTemporal(int n)

createTemporal

public SUTime.Temporal createTemporal(int n)

create

public SUTime.Temporal create(Expressions.CompositeValue compositeValue)


Stanford NLP Group