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

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

public enum GrammaticalAspect
extends Enum<GrammaticalAspect>

Enumeration of the grammatical aspect 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 GrammaticalTense.

Author:
Christian M. Meyer

Enum Constant Summary
IMPERFECT
          An ongoing, habitual, repeated situation.
PERFECT
          A completed situation.
 
Method Summary
static GrammaticalAspect valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GrammaticalAspect[] 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

IMPERFECT

public static final GrammaticalAspect IMPERFECT
An ongoing, habitual, repeated situation. Used to express the English simple forms (e.g., "I paint the house") and progressive forms ("I am painting the house"). The imperfect aspect is also used for the German "Partizip I" form (e.g. "die liebende Mutter").


PERFECT

public static final GrammaticalAspect PERFECT
A completed situation. Used to express the English perfect forms (e.g., "I have painted the house"). The perfect aspect is also used for the German "Partizip II" form (e.g., "die geliebte Mutter").

Method Detail

values

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

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

valueOf

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