public static enum PersonName.FieldModifier extends java.lang.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").
|
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").
|
Modifier and Type | Method and Description |
---|---|
static PersonName.FieldModifier |
forString(java.lang.String name)
Returns the appropriate fieldModifier for its display name.
|
java.lang.String |
toString()
Returns the FieldModifier's display name.
|
static PersonName.FieldModifier |
valueOf(java.lang.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
public static final PersonName.FieldModifier INITIAL_CAP
public static PersonName.FieldModifier[] values()
for (PersonName.FieldModifier c : PersonName.FieldModifier.values()) System.out.println(c);
public static PersonName.FieldModifier valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<PersonName.FieldModifier>
public static PersonName.FieldModifier forString(java.lang.String name)
Copyright ? 2016 Unicode, Inc. and others.