Package org.gedcomx.conclusion
Class NamePart
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.conclusion.NamePart
- All Implemented Interfaces:
HasTransientProperties,HasFields,SupportsExtensionElements
A part of a name.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidAdd a reference to the record field values being used as evidence.voidaddQualifier(Qualifier qualifier) Add a qualifier associated with this name part.extensionElement(Object element) Build out this name part with a field.Get the fields being used as evidence.The enum referencing the known name part type, orNamePartType.OTHERif not known.The qualifiers associated with this name part.getType()The type of the name part.getValue()The value of the name part.Build up this object with an id.Build out this name part with a qualifier.Create a stream for the qualifiers.voidSet the list of fields being used as evidence.voidsetKnownType(NamePartType knownType) Set the type of this name part from an enumeration of known name part types.voidsetQualifiers(List<Qualifier> qualifiers) Set the qualifiers associated with this name part.voidThe type of the name part.voidThe value of the name part.Build out this name part with a type.type(NamePartType type) Build out this name part with a type.Build out this name part with a value.Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
NamePart
public NamePart() -
NamePart
-
NamePart
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
getType
The type of the name part.- Returns:
- The type of the name part.
-
setType
The type of the name part.- Parameters:
type- The type of the name part.
-
type
Build out this name part with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
Build out this name part with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
The enum referencing the known name part type, orNamePartType.OTHERif not known.- Returns:
- The enum referencing the known name part type, or
NamePartType.OTHERif not known.
-
setKnownType
Set the type of this name part from an enumeration of known name part types.- Parameters:
knownType- The name part type.
-
getValue
The value of the name part.- Returns:
- The value of the name part.
-
setValue
The value of the name part.- Parameters:
value- The value of the name part.
-
value
Build out this name part with a value.- Parameters:
value- The value.- Returns:
- this.
-
qualifiers
Create a stream for the qualifiers.- Returns:
- a stream for the qualifiers.
-
getQualifiers
The qualifiers associated with this name part.- Returns:
- The qualifiers associated with this name part.
-
setQualifiers
Set the qualifiers associated with this name part.- Parameters:
qualifiers- qualifiers to associate with this name part
-
qualifier
Build out this name part with a qualifier.- Parameters:
qualifier- The qualifier.- Returns:
- this.
-
addQualifier
Add a qualifier associated with this name part.- Parameters:
qualifier- The qualifier to be added.
-
getFields
Get the fields being used as evidence. -
setFields
Set the list of fields being used as evidence. -
field
Build out this name part with a field.- Parameters:
field- The field.- Returns:
- this.
-
addField
Add a reference to the record field values being used as evidence.- Parameters:
field- The field to be added.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-