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

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

public enum NonFiniteForm
extends Enum<NonFiniteForm>

Enumeration for modelling non-finite IWiktionaryWordForms. Although other form properties (like GrammaticalTense) are predominantly used to represent finite forms, such properties can also be used to describe non-finite forms. For example, the English present participle (tense = PRESENT) and past participle (tense = PAST).

Author:
Christian M. Meyer

Enum Constant Summary
INFINITIVE
          The infinitive form of a verb (e.g., "(to) do").
PARTICIPLE
          The participle form of a verb (e.g., "done").
 
Method Summary
static NonFiniteForm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NonFiniteForm[] 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

INFINITIVE

public static final NonFiniteForm INFINITIVE
The infinitive form of a verb (e.g., "(to) do").


PARTICIPLE

public static final NonFiniteForm PARTICIPLE
The participle form of a verb (e.g., "done"). Participle forms should be combined with a GrammaticalTense.

Method Detail

values

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

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

valueOf

public static NonFiniteForm 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.