Package org.gedcomx.conclusion
Class NameForm
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.conclusion.NameForm
-
- All Implemented Interfaces:
HasTransientProperties,HasFields,SupportsExtensionElements
public class NameForm extends ExtensibleData implements HasFields
A form of a name.- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(GedcomxModelVisitor visitor)Accept a visitor.voidaddField(Field field)Add a reference to the record field values being used as evidence.voidaddPart(NamePart part)Add a name part the list of name parts for this name form.NameFormextensionElement(Object element)NameFormfield(Field field)Build up this name form with a field.NameFormfullText(String fullText)Build up this name form with full text.List<Field>getFields()Get the fields being used as evidence.StringgetFullText()The full text of the name form.StringgetLang()The language of the conclusion.List<NamePart>getParts()The different parts of the name form.NameFormid(String id)Build up this object with an id.NameFormlang(String lang)Build up this name form with a lang.NameFormpart(NamePart part)Build up this name form with a part.NameFormpart(NamePartType partType, String value)Build up this name form with a part.Stream<NamePart>parts()Create a stream for the name parts.voidsetFields(List<Field> fields)Set the list of fields being used as evidence.voidsetFullText(String fullText)The full text of the name form.voidsetLang(String lang)The language of the conclusion.voidsetParts(List<NamePart> parts)The different parts of the name form.-
Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
-
-
-
Method Detail
-
id
public NameForm id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public NameForm extensionElement(Object element)
- Overrides:
extensionElementin classExtensibleData
-
getLang
public String getLang()
The language of the conclusion. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of the conclusion.
-
setLang
public void setLang(String lang)
The language of the conclusion. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of the conclusion.
-
lang
public NameForm lang(String lang)
Build up this name form with a lang.- Parameters:
lang- The lang.- Returns:
- this.
-
getFullText
public String getFullText()
The full text of the name form.- Returns:
- The full text of the name form.
-
setFullText
public void setFullText(String fullText)
The full text of the name form.- Parameters:
fullText- The full text of the name form.
-
fullText
public NameForm fullText(String fullText)
Build up this name form with full text.- Parameters:
fullText- The full text.- Returns:
- this
-
parts
public Stream<NamePart> parts()
Create a stream for the name parts.- Returns:
- a stream for the name parts.
-
getParts
public List<NamePart> getParts()
The different parts of the name form.- Returns:
- The different parts of the name form.
-
setParts
public void setParts(List<NamePart> parts)
The different parts of the name form.- Parameters:
parts- The different parts of the name form.
-
part
public NameForm part(NamePart part)
Build up this name form with a part.- Parameters:
part- The part.- Returns:
- this.
-
part
public NameForm part(NamePartType partType, String value)
Build up this name form with a part.- Parameters:
partType- The part type.value- The value.- Returns:
- this.
-
addPart
public void addPart(NamePart part)
Add a name part the list of name parts for this name form.- Parameters:
part- The name part to be added.
-
field
public NameForm field(Field field)
Build up this name form with a field.- Parameters:
field- The field.- Returns:
- this.
-
addField
public void addField(Field field)
Add a reference to the record field values being used as evidence.- Parameters:
field- The field to be added.
-
accept
public void accept(GedcomxModelVisitor visitor)
Accept a visitor.- Parameters:
visitor- The visitor.
-
-