Enum GrammaticalCase
- All Implemented Interfaces:
LanguageForm, Serializable, Comparable<GrammaticalCase>, Constable
Grammatical case forms.
This enum intentionally models a high-coverage set of cases that appear across many language families. Languages with more specialized case inventories can map to the closest matching value.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSource, motion-away-from, or separation form.Direct object form.Indirect object or recipient form.Possessive, source, or partitive-adjacent form.Instrument or accompaniment form.Location or place form.Citation or subject form.Preposition-governed form used in languages such as Russian.Direct address form. -
Method Summary
Modifier and TypeMethodDescriptionstatic GrammaticalCaseReturns 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 Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NOMINATIVE
Citation or subject form. -
ACCUSATIVE
Direct object form. -
GENITIVE
Possessive, source, or partitive-adjacent form. -
DATIVE
Indirect object or recipient form. -
INSTRUMENTAL
Instrument or accompaniment form. -
LOCATIVE
Location or place form. -
PREPOSITIONAL
Preposition-governed form used in languages such as Russian. -
VOCATIVE
Direct address form. -
ABLATIVE
Source, motion-away-from, or separation form.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-