Class EvidenceReference

All Implemented Interfaces:
Attributable, HasTransientProperties, SupportsLinks, SupportsExtensionElements

public final class EvidenceReference extends HypermediaEnabledData implements Attributable
A reference to a resource that is being used as evidence.
Author:
Ryan Heaton
  • Constructor Details

    • EvidenceReference

      public EvidenceReference()
    • EvidenceReference

      public EvidenceReference(URI resource)
    • EvidenceReference

      public EvidenceReference(URI resource, String resourceId)
    • EvidenceReference

      public EvidenceReference(EvidenceReference copy)
  • Method Details

    • link

      public EvidenceReference 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 EvidenceReference 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.
    • id

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

      public String getResourceId()
      The resource id of the resource being referenced. Used as an extension attribute when resolving the resource is inconvenient.
      Returns:
      The resource id of the resource being referenced.
    • setResourceId

      public void setResourceId(String resourceId)
      The resource id of the resource being referenced. Used as an extension attribute when resolving the resource is inconvenient.
      Parameters:
      resourceId - The resource id of the resource being referenced.
    • resourceId

      public EvidenceReference resourceId(String resourceId)
      Build up this reference with a resource id.
      Parameters:
      resourceId - The resource id.
      Returns:
      this.
    • getResource

      public URI getResource()
      The URI to the resource being referenced as evidence.
      Returns:
      The URI to the resource.
      See Also:
    • setResource

      public void setResource(URI resource)
      The URI to the resource being referenced as evidence.
      Parameters:
      resource - The URI to the resource.
      See Also:
    • resource

      public EvidenceReference resource(URI resource)
      Build up this reference with a resource URI.
      Parameters:
      resource - The resource.
      Returns:
      this
    • getAttribution

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

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

      public EvidenceReference attribution(Attribution attribution)
      Build up this evidence reference with an attribution.
      Parameters:
      attribution - The attribution.
      Returns:
      this.
    • accept

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

      public String toString()
      Provide a simple toString() method.
      Overrides:
      toString in class ExtensibleData