public class Name extends Element
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.Void,Name> |
KEY
The key for this element.
|
Constructor and Description |
---|
Name()
Constructs an instance using the default key.
|
Modifier and Type | Method and Description |
---|---|
AdditionalName |
getAdditionalName()
Returns the additional name.
|
FamilyName |
getFamilyName()
Returns the family name.
|
FullName |
getFullName()
Returns the full name.
|
GivenName |
getGivenName()
Returns the given name.
|
NamePrefix |
getNamePrefix()
Returns the name prefix.
|
NameSuffix |
getNameSuffix()
Returns the name suffix.
|
boolean |
hasAdditionalName()
Returns whether it has the additional name.
|
boolean |
hasFamilyName()
Returns whether it has the family name.
|
boolean |
hasFullName()
Returns whether it has the full name.
|
boolean |
hasGivenName()
Returns whether it has the given name.
|
boolean |
hasNamePrefix()
Returns whether it has the name prefix.
|
boolean |
hasNameSuffix()
Returns whether it has the name suffix.
|
Name |
lock()
Locks this element.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
Name |
setAdditionalName(AdditionalName additionalName)
Sets the additional name.
|
Name |
setFamilyName(FamilyName familyName)
Sets the family name.
|
Name |
setFullName(FullName fullName)
Sets the full name.
|
Name |
setGivenName(GivenName givenName)
Sets the given name.
|
Name |
setNamePrefix(NamePrefix namePrefix)
Sets the name prefix.
|
Name |
setNameSuffix(NameSuffix nameSuffix)
Sets the name suffix.
|
addElement, addElement, addElement, clear, createElement, createElement, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
public static final ElementKey<java.lang.Void,Name> KEY
public static void registerMetadata(MetadataRegistry registry)
public Name lock()
Element
public AdditionalName getAdditionalName()
public Name setAdditionalName(AdditionalName additionalName)
additionalName
- additional name or null
to resetpublic boolean hasAdditionalName()
public FamilyName getFamilyName()
public Name setFamilyName(FamilyName familyName)
familyName
- family name or null
to resetpublic boolean hasFamilyName()
public FullName getFullName()
public Name setFullName(FullName fullName)
fullName
- full name or null
to resetpublic boolean hasFullName()
public GivenName getGivenName()
public Name setGivenName(GivenName givenName)
givenName
- given name or null
to resetpublic boolean hasGivenName()
public NamePrefix getNamePrefix()
public Name setNamePrefix(NamePrefix namePrefix)
namePrefix
- name prefix or null
to resetpublic boolean hasNamePrefix()
public NameSuffix getNameSuffix()
public Name setNameSuffix(NameSuffix nameSuffix)
nameSuffix
- name suffix or null
to resetpublic boolean hasNameSuffix()