public class Name extends ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
xmlBlob
localName, namespace
Constructor and Description |
---|
Name()
Default mutable constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
AdditionalName |
getAdditionalName()
Returns the additional name.
|
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
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.
|
void |
setAdditionalName(AdditionalName additionalName)
Sets the additional name.
|
void |
setFamilyName(FamilyName familyName)
Sets the family name.
|
void |
setFullName(FullName fullName)
Sets the full name.
|
void |
setGivenName(GivenName givenName)
Sets the given name.
|
void |
setNamePrefix(NamePrefix namePrefix)
Sets the name prefix.
|
void |
setNameSuffix(NameSuffix nameSuffix)
Sets the name suffix.
|
java.lang.String |
toString() |
protected void |
validate()
Checks the attributes to see if there are any problems.
|
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getHandler, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public AdditionalName getAdditionalName()
public void setAdditionalName(AdditionalName additionalName)
additionalName
- additional name or null
to resetpublic boolean hasAdditionalName()
public FamilyName getFamilyName()
public void setFamilyName(FamilyName familyName)
familyName
- family name or null
to resetpublic boolean hasFamilyName()
public FullName getFullName()
public void setFullName(FullName fullName)
fullName
- full name or null
to resetpublic boolean hasFullName()
public GivenName getGivenName()
public void setGivenName(GivenName givenName)
givenName
- given name or null
to resetpublic boolean hasGivenName()
public NamePrefix getNamePrefix()
public void setNamePrefix(NamePrefix namePrefix)
namePrefix
- name prefix or null
to resetpublic boolean hasNamePrefix()
public NameSuffix getNameSuffix()
public void setNameSuffix(NameSuffix nameSuffix)
nameSuffix
- name suffix or null
to resetpublic boolean hasNameSuffix()
protected void validate()
AbstractExtension
validate
in class AbstractExtension
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic java.lang.String toString()
toString
in class java.lang.Object