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
  • Constructor Details

    • NameForm

      public NameForm()
    • NameForm

      public NameForm(String fullText, NamePart... parts)
    • NameForm

      public NameForm(NameForm copy)
  • Method Details

    • id

      public NameForm id(String id)
      Description copied from class: ExtensibleData
      Build up this object with an id.
      Overrides:
      id in class ExtensibleData
      Parameters:
      id - The id.
      Returns:
      this.
    • extensionElement

      public NameForm extensionElement(Object element)
      Overrides:
      extensionElement in class ExtensibleData
    • getLang

      public String getLang()
      Returns:
      The language of the conclusion.
    • setLang

      public void setLang(String lang)
      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.
    • getFields

      public List<Field> getFields()
      Get the fields being used as evidence.
      Specified by:
      getFields in interface HasFields
      Returns:
      The references to the record fields being used as evidence.
    • setFields

      public void setFields(List<Field> fields)
      Set the list of fields being used as evidence.
      Specified by:
      setFields in interface HasFields
      Parameters:
      fields - - List of fields
    • 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.