Class SourceReference

All Implemented Interfaces:
Attributable, HasTransientProperties, SupportsLinks, SupportsExtensionElements

public class SourceReference extends HypermediaEnabledData implements Attributable
An attributable reference to a description of a source.
Author:
Ryan Heaton
  • Constructor Details

    • SourceReference

      public SourceReference()
    • SourceReference

      public SourceReference(SourceReference copy)
  • Method Details

    • id

      public SourceReference 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 SourceReference extensionElement(Object element)
      Overrides:
      extensionElement in class ExtensibleData
    • link

      public SourceReference link(Link link)
      Description copied from class: HypermediaEnabledData
      Build up this data with a link.
      Overrides:
      link in class HypermediaEnabledData
      Parameters:
      link - The link.
      Returns:
      this.
    • link

      public SourceReference link(String rel, URI href)
      Description copied from class: HypermediaEnabledData
      Build up this data with a link.
      Overrides:
      link in class HypermediaEnabledData
      Parameters:
      rel - The rel.
      href - The href.
      Returns:
      this.
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object