Class NameForm

    • Constructor Detail

      • NameForm

        public NameForm()
    • Method Detail

      • 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.