Package com.ibm.icu.impl.personname
Class PersonNamePattern.NameFieldImpl
- java.lang.Object
-
- com.ibm.icu.impl.personname.PersonNamePattern.NameFieldImpl
-
- All Implemented Interfaces:
PersonNamePattern.Element
- Enclosing class:
- PersonNamePattern
private static class PersonNamePattern.NameFieldImpl extends java.lang.Object implements PersonNamePattern.Element
An actual name field in a NamePattern (i.e., the stuff represented in the pattern by text in braces). This class actually handles fetching the value for the field out of a PersonName object and applying any modifiers to it.
-
-
Field Summary
Fields Modifier and Type Field Description private PersonName.NameField
fieldID
private java.util.Map<PersonName.FieldModifier,FieldModifierImpl>
modifiers
-
Constructor Summary
Constructors Constructor Description NameFieldImpl(java.lang.String fieldNameAndModifiers, PersonNameFormatterImpl formatterImpl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(PersonName name)
boolean
isLiteral()
boolean
isPopulated(PersonName name)
java.lang.String
toString()
-
-
-
Field Detail
-
fieldID
private PersonName.NameField fieldID
-
modifiers
private java.util.Map<PersonName.FieldModifier,FieldModifierImpl> modifiers
-
-
Constructor Detail
-
NameFieldImpl
public NameFieldImpl(java.lang.String fieldNameAndModifiers, PersonNameFormatterImpl formatterImpl)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isLiteral
public boolean isLiteral()
- Specified by:
isLiteral
in interfacePersonNamePattern.Element
-
format
public java.lang.String format(PersonName name)
- Specified by:
format
in interfacePersonNamePattern.Element
-
isPopulated
public boolean isPopulated(PersonName name)
- Specified by:
isPopulated
in interfacePersonNamePattern.Element
-
-