public class Name extends Element
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.Void,Name> |
KEY
The key for this element.
|
Modifier | Constructor and Description |
---|---|
|
Name()
Constructs an instance using the default key.
|
protected |
Name(ElementKey<?,? extends Name> key)
Subclass constructor, allows subclasses to supply their own element key.
|
protected |
Name(ElementKey<?,? extends Name> key,
Element source)
Constructs a new instance by doing a shallow copy of data from an existing
Element instance. |
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.
|
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, 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, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, validate, visit
public static final ElementKey<java.lang.Void,Name> KEY
public Name()
protected Name(ElementKey<?,? extends Name> key)
protected Name(ElementKey<?,? extends Name> key, Element source)
Element
instance. Will use the given ElementKey
as the key
for the element. This constructor is used when adapting from one element
key to another. You cannot call this constructor directly, instead use
Element.createElement(ElementKey, Element)
.key
- The key to use for this element.source
- source elementpublic 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()