Class SourceCitation

    • Constructor Detail

      • SourceCitation

        public SourceCitation()
    • Method Detail

      • lang

        public SourceCitation lang​(String lang)
        Build out this source citation with a lang.
        Parameters:
        lang - The lang.
        Returns:
        this.
      • getValue

        public String getValue()
        A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
        Returns:
        A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
      • setValue

        public void setValue​(String value)
        A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
        Parameters:
        value - A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
      • value

        public SourceCitation value​(String value)
        Build out this source citation with a value.
        Parameters:
        value - The value.
        Returns:
        this.
      • getCitationTemplate

        public ResourceReference getCitationTemplate()
        A reference to the citation template for this citation.
        Returns:
        A reference to the citation template for this citation.
      • setCitationTemplate

        public void setCitationTemplate​(ResourceReference citationTemplate)
        A reference to the citation template for this citation.
        Parameters:
        citationTemplate - A reference to the citation template for this citation.
      • citationTemplate

        public SourceCitation citationTemplate​(ResourceReference citationTemplate)
        Build out this source citation with a template.
        Parameters:
        citationTemplate - The template.
        Returns:
        this.
      • getFields

        public List<CitationField> getFields()
        The list of citation fields.
        Returns:
        The list of citation fields.
      • setFields

        public void setFields​(List<CitationField> fields)
        The list of citation fields.
        Parameters:
        fields - The list of citation fields.
      • field

        public SourceCitation field​(CitationField fields)
        Build out this citation with a field.
        Parameters:
        fields - The field.
        Returns:
        This.
      • addField

        public void addField​(CitationField field)
        Add a reference to the citation fields.
        Parameters:
        field - The field to be added.
      • accept

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

        public int hashCode()
        Overrides:
        hashCode in class Object