public static enum PersonName.FieldModifier extends Enum<PersonName.FieldModifier>
Enum Constant and Description |
---|
ALL_CAPS
Requests the field value converted to ALL CAPS.
|
CORE
If the field contains a main word with one or more separate prefixes, such as
"van den Hul", this requests just the main word ("Hul").
|
GENITIVE
Requests the genitive form of the field's contents, if possible.
|
INFORMAL
Requests an "informal" variant of the field, generally a nickname of some type:
if "given" is "James", "given-informal" might be "Jimmy".
|
INITIAL
Requests an initial for the specified field.
|
INITIAL_CAP
Requests the field value with the first grapheme of each word converted to titlecase.
|
MONOGRAM
Requests an initial for the specified field, suitable for use in a monogram
(this usually differs from "initial" in that "initial" often adds a period and "monogram"
never does).
|
PREFIX
If the field contains a main word with one or more separate prefixes, such as
"van den Hul", this requests just the prefixes ("van den").
|
RETAIN
Deprecated.
This API is ICU internal only.
|
VOCATIVE
Requests the vocative form of the field's contents, if possible.
|
Modifier and Type | Method and Description |
---|---|
static PersonName.FieldModifier |
forString(String name)
Returns the appropriate fieldModifier for its display name.
|
String |
toString()
Returns the FieldModifier's display name.
|
static PersonName.FieldModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersonName.FieldModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersonName.FieldModifier INFORMAL
public static final PersonName.FieldModifier PREFIX
public static final PersonName.FieldModifier CORE
public static final PersonName.FieldModifier INITIAL
public static final PersonName.FieldModifier MONOGRAM
public static final PersonName.FieldModifier ALL_CAPS
@Deprecated public static final PersonName.FieldModifier RETAIN
public static final PersonName.FieldModifier INITIAL_CAP
public static final PersonName.FieldModifier GENITIVE
public static final PersonName.FieldModifier VOCATIVE
public static PersonName.FieldModifier[] values()
for (PersonName.FieldModifier c : PersonName.FieldModifier.values()) System.out.println(c);
public static PersonName.FieldModifier valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<PersonName.FieldModifier>
public static PersonName.FieldModifier forString(String name)
Copyright © 2016 Unicode, Inc. and others.