Package com.ibm.icu.text
Enum DisplayOptions.NounClass
- java.lang.Object
-
- java.lang.Enum<DisplayOptions.NounClass>
-
- com.ibm.icu.text.DisplayOptions.NounClass
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DisplayOptions.NounClass>
- Enclosing class:
- DisplayOptions
public static enum DisplayOptions.NounClass extends java.lang.Enum<DisplayOptions.NounClass>
Represents all the grammatical noun classes that are supported by CLDR.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
identifier
static java.util.List<DisplayOptions.NounClass>
VALUES
Unmodifiable List of all noun classes constants.
-
Constructor Summary
Constructors Modifier Constructor Description private
NounClass(java.lang.String identifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisplayOptions.NounClass
fromIdentifier(java.lang.String identifier)
java.lang.String
getIdentifier()
static DisplayOptions.NounClass
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DisplayOptions.NounClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final DisplayOptions.NounClass UNDEFINED
A possible setting for NounClass. The noun class context to be used is unknown (this is the default value).
-
OTHER
public static final DisplayOptions.NounClass OTHER
-
NEUTER
public static final DisplayOptions.NounClass NEUTER
-
FEMININE
public static final DisplayOptions.NounClass FEMININE
-
MASCULINE
public static final DisplayOptions.NounClass MASCULINE
-
ANIMATE
public static final DisplayOptions.NounClass ANIMATE
-
INANIMATE
public static final DisplayOptions.NounClass INANIMATE
-
PERSONAL
public static final DisplayOptions.NounClass PERSONAL
-
COMMON
public static final DisplayOptions.NounClass COMMON
-
-
Field Detail
-
identifier
private final java.lang.String identifier
-
VALUES
public static final java.util.List<DisplayOptions.NounClass> VALUES
Unmodifiable List of all noun classes constants. List version ofvalues()
.
-
-
Method Detail
-
values
public static DisplayOptions.NounClass[] 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 (DisplayOptions.NounClass c : DisplayOptions.NounClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisplayOptions.NounClass valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getIdentifier
public final java.lang.String getIdentifier()
- Returns:
- the lowercase CLDR keyword string for the noun class.
-
fromIdentifier
public static final DisplayOptions.NounClass fromIdentifier(java.lang.String identifier)
- Parameters:
identifier
- in lower case such as "feminine" or "masculine"- Returns:
- the plural category corresponding to the identifier, or
UNDEFINED
-
-