de.tudarmstadt.ukp.jwktl.api.util
Enum GrammaticalTense

java.lang.Object
  extended by java.lang.Enum<GrammaticalTense>
      extended by de.tudarmstadt.ukp.jwktl.api.util.GrammaticalTense
All Implemented Interfaces:
Serializable, Comparable<GrammaticalTense>

public enum GrammaticalTense
extends Enum<GrammaticalTense>

Enumeration of the grammatical tense of a IWiktionaryWordForm. Note that tense is often combined with verb aspects (e.g., present perfect). Such combinations can be modeled in combination with enumeration values from GrammaticalAspect.

Author:
Christian M. Meyer

Enum Constant Summary
FUTURE
          The future; an utterance refers to the time after a reference time.
PAST
          The past; an utterance refers to the time before a reference time.
PRESENT
          The present; an utterance refers to the reference time.
 
Method Summary
static GrammaticalTense valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GrammaticalTense[] 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

PAST

public static final GrammaticalTense PAST
The past; an utterance refers to the time before a reference time.


PRESENT

public static final GrammaticalTense PRESENT
The present; an utterance refers to the reference time.


FUTURE

public static final GrammaticalTense FUTURE
The future; an utterance refers to the time after a reference time.

Method Detail

values

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

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

valueOf

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


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.