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

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

public enum GrammaticalCase
extends Enum<GrammaticalCase>

Enumeration of the grammatical case of a IWiktionaryWordForm.

Author:
Christian M. Meyer

Enum Constant Summary
ACCUSATIVE
          Indicates the direct object of a verb.
DATIVE
          Indicates the indirect object of a verb.
GENITIVE
          Indicates possession.
NOMINATIVE
          Indicates the subject of a finite verb.
 
Method Summary
static GrammaticalCase valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GrammaticalCase[] 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

NOMINATIVE

public static final GrammaticalCase NOMINATIVE
Indicates the subject of a finite verb. Ask "Wer/Was?" in German sentences (e.g., "_Peter_ liest").


ACCUSATIVE

public static final GrammaticalCase ACCUSATIVE
Indicates the direct object of a verb. Ask "Wen/Was?" in German sentences (e.g., "Peter liest _ein Buch_").


DATIVE

public static final GrammaticalCase DATIVE
Indicates the indirect object of a verb. Ask "Wem?" in German sentences (e.g., "Peter liest _ihr_ vor").


GENITIVE

public static final GrammaticalCase GENITIVE
Indicates possession. Ask "Wessen?" in German sentences (e.g., "_Peters_ Buch ist spannend").

Method Detail

values

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

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

valueOf

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