Class SourceReference

    • Constructor Detail

      • SourceReference

        public SourceReference()
    • Method Detail

      • getAttribution

        public Attribution getAttribution()
        The attribution metadata for this source reference.
        Specified by:
        getAttribution in interface Attributable
        Returns:
        The attribution metadata for this source reference.
      • setAttribution

        public void setAttribution​(Attribution attribution)
        The attribution metadata for this source reference.
        Specified by:
        setAttribution in interface Attributable
        Parameters:
        attribution - The attribution metadata for this source reference.
      • attribution

        public SourceReference attribution​(Attribution attribution)
        Build up this source reference with attribution.
        Parameters:
        attribution - The attribution.
        Returns:
        this.
      • getDescriptionRef

        public URI getDescriptionRef()
        A reference to a description of the source being referenced.
        Returns:
        A reference to a description of the source being referenced.
      • setDescriptionRef

        public void setDescriptionRef​(URI descriptionRef)
        A reference to a description of the source being referenced.
        Parameters:
        descriptionRef - A reference to a description of the source being referenced.
      • descriptionRef

        public SourceReference descriptionRef​(URI descriptionRef)
        Build up this source reference with a description reference.
        Parameters:
        descriptionRef - The description ref.
        Returns:
        this.
      • getDescriptionId

        public String getDescriptionId()
        Id of the source being referenced.
        Returns:
        Id of the source being referenced.
      • setDescriptionId

        public void setDescriptionId​(String descriptionId)
        Id of the source being referenced.
        Parameters:
        descriptionId - Id of the source being referenced.
      • descriptionId

        public SourceReference descriptionId​(String descriptionId)
        Build up this source iderence with a description iderence.
        Parameters:
        descriptionId - The description id.
        Returns:
        this.
      • description

        public SourceReference description​(SourceDescription description)
        Build up this source reference with a description reference.
        Parameters:
        description - The description.
        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 source reference.
        Returns:
        The qualifiers associated with this source reference.
      • setQualifiers

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

        public SourceReference qualifier​(Qualifier qualifier)
        Build up this source reference with a qualifier.
        Parameters:
        qualifier - The qualifier.
        Returns:
        this.
      • addQualifier

        public void addQualifier​(Qualifier qualifier)
        Add a qualifier.
        Parameters:
        qualifier - The qualifier.
      • accept

        public void accept​(GedcomxModelVisitor visitor)
        Accept a visitor.
        Parameters:
        visitor - The visitor.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object