Class NamePart

    • Constructor Detail

      • NamePart

        public NamePart()
    • Method Detail

      • getType

        public URI getType()
        The type of the name part.
        Returns:
        The type of the name part.
      • setType

        public void setType​(URI type)
        The type of the name part.
        Parameters:
        type - The type of the name part.
      • type

        public NamePart type​(URI type)
        Build out this name part with a type.
        Parameters:
        type - The type.
        Returns:
        this.
      • type

        public NamePart type​(NamePartType type)
        Build out this name part with a type.
        Parameters:
        type - The type.
        Returns:
        this.
      • setKnownType

        public void setKnownType​(NamePartType knownType)
        Set the type of this name part from an enumeration of known name part types.
        Parameters:
        knownType - The name part type.
      • getValue

        public String getValue()
        The value of the name part.
        Returns:
        The value of the name part.
      • setValue

        public void setValue​(String value)
        The value of the name part.
        Parameters:
        value - The value of the name part.
      • value

        public NamePart value​(String value)
        Build out this name part with a value.
        Parameters:
        value - The value.
        Returns:
        this.
      • qualifiers

        public Stream<Qualifier> qualifiers()
        Create a stream for the qualifiers.
        Returns:
        a stream for the qualifiers.
      • getQualifiers

        public List<Qualifier> getQualifiers()
        The qualifiers associated with this name part.
        Returns:
        The qualifiers associated with this name part.
      • setQualifiers

        public void setQualifiers​(List<Qualifier> qualifiers)
        Set the qualifiers associated with this name part.
        Parameters:
        qualifiers - qualifiers to associate with this name part
      • qualifier

        public NamePart qualifier​(Qualifier qualifier)
        Build out this name part with a qualifier.
        Parameters:
        qualifier - The qualifier.
        Returns:
        this.
      • addQualifier

        public void addQualifier​(Qualifier qualifier)
        Add a qualifier associated with this name part.
        Parameters:
        qualifier - The qualifier 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 NamePart field​(Field field)
        Build out this name part 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.