Package org.gedcomx.common
Class EvidenceReference
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.common.EvidenceReference
- All Implemented Interfaces:
Attributable,HasTransientProperties,SupportsLinks,SupportsExtensionElements
A reference to a resource that is being used as evidence.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
ConstructorsConstructorDescriptionEvidenceReference(URI resource) EvidenceReference(URI resource, String resourceId) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.attribution(Attribution attribution) Build up this evidence reference with an attribution.extensionElement(Object element) Attribution metadata for this evidence reference.The URI to the resource being referenced as evidence.The resource id of the resource being referenced.Build up this object with an id.Build up this data with a link.Build up this data with a link.Build up this reference with a resource URI.resourceId(String resourceId) Build up this reference with a resource id.voidsetAttribution(Attribution attribution) Attribution metadata for evidence reference.voidsetResource(URI resource) The URI to the resource being referenced as evidence.voidsetResourceId(String resourceId) The resource id of the resource being referenced.toString()Provide a simple toString() method.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty
-
Constructor Details
-
EvidenceReference
public EvidenceReference() -
EvidenceReference
-
EvidenceReference
-
EvidenceReference
-
-
Method Details
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
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
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
Build up this reference with a resource id.- Parameters:
resourceId- The resource id.- Returns:
- this.
-
getResource
The URI to the resource being referenced as evidence.- Returns:
- The URI to the resource.
- See Also:
-
setResource
The URI to the resource being referenced as evidence.- Parameters:
resource- The URI to the resource.- See Also:
-
resource
Build up this reference with a resource URI.- Parameters:
resource- The resource.- Returns:
- this
-
getAttribution
Attribution metadata for this evidence reference.- Specified by:
getAttributionin interfaceAttributable- Returns:
- Attribution metadata for evidence reference.
-
setAttribution
Attribution metadata for evidence reference.- Specified by:
setAttributionin interfaceAttributable- Parameters:
attribution- Attribution metadata for evidence reference.
-
attribution
Build up this evidence reference with an attribution.- Parameters:
attribution- The attribution.- Returns:
- this.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
toString
Provide a simple toString() method.- Overrides:
toStringin classExtensibleData
-