Package com.ibm.icu.text
Enum DisplayOptions.GrammaticalCase
- All Implemented Interfaces:
Serializable
,Comparable<DisplayOptions.GrammaticalCase>
,java.lang.constant.Constable
- Enclosing class:
DisplayOptions
Represents all the grammatical cases that are supported by CLDR.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA possible setting for GrammaticalCase. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<DisplayOptions.GrammaticalCase> Unmodifiable List of all grammatical cases constants. -
Method Summary
Modifier and TypeMethodDescriptionstatic final DisplayOptions.GrammaticalCase
fromIdentifier
(String identifier) final String
Returns the enum constant of this type with the specified name.static DisplayOptions.GrammaticalCase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
A possible setting for GrammaticalCase. The grammatical case context to be used is unknown (this is the default value). -
ABLATIVE
-
ACCUSATIVE
-
COMITATIVE
-
DATIVE
-
ERGATIVE
-
GENITIVE
-
INSTRUMENTAL
-
LOCATIVE
-
LOCATIVE_COPULATIVE
-
NOMINATIVE
-
OBLIQUE
-
PREPOSITIONAL
-
SOCIATIVE
-
VOCATIVE
-
-
Field Details
-
VALUES
Unmodifiable List of all grammatical cases constants. List version ofvalues()
.
-
-
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
-
getIdentifier
- Returns:
- the lowercase CLDR keyword string for the grammatical case.
-
fromIdentifier
- Parameters:
identifier
- in lower case such as "dative" or "nominative"- Returns:
- the plural category corresponding to the identifier, or
UNDEFINED
-