Package org.gedcomx.source
Class SourceReference
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.source.SourceReference
- All Implemented Interfaces:
Attributable,HasTransientProperties,SupportsLinks,SupportsExtensionElements
An attributable reference to a description of a source.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidaddQualifier(Qualifier qualifier) Add a qualifier.attribution(Attribution attribution) Build up this source reference with attribution.description(SourceDescription description) Build up this source reference with a description reference.descriptionId(String descriptionId) Build up this source iderence with a description iderence.descriptionRef(URI descriptionRef) Build up this source reference with a description reference.booleanextensionElement(Object element) The attribution metadata for this source reference.Id of the source being referenced.A reference to a description of the source being referenced.The qualifiers associated with this source reference.inthashCode()Build up this object with an id.Build up this data with a link.Build up this data with a link.Build up this source reference with a qualifier.Create a stream for the qualifiers.voidsetAttribution(Attribution attribution) The attribution metadata for this source reference.voidsetDescriptionId(String descriptionId) Id of the source being referenced.voidsetDescriptionRef(URI descriptionRef) A reference to a description of the source being referenced.voidsetQualifiers(List<Qualifier> qualifiers) Set the qualifiers associated with this source reference.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, toString
-
Constructor Details
-
SourceReference
public SourceReference() -
SourceReference
-
-
Method Details
-
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
-
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.
-
getAttribution
The attribution metadata for this source reference.- Specified by:
getAttributionin interfaceAttributable- Returns:
- The attribution metadata for this source reference.
-
setAttribution
The attribution metadata for this source reference.- Specified by:
setAttributionin interfaceAttributable- Parameters:
attribution- The attribution metadata for this source reference.
-
attribution
Build up this source reference with attribution.- Parameters:
attribution- The attribution.- Returns:
- this.
-
getDescriptionRef
A reference to a description of the source being referenced.- Returns:
- A reference to a description of the source being referenced.
-
setDescriptionRef
A reference to a description of the source being referenced.- Parameters:
descriptionRef- A reference to a description of the source being referenced.
-
descriptionRef
Build up this source reference with a description reference.- Parameters:
descriptionRef- The description ref.- Returns:
- this.
-
getDescriptionId
Id of the source being referenced.- Returns:
- Id of the source being referenced.
-
setDescriptionId
Id of the source being referenced.- Parameters:
descriptionId- Id of the source being referenced.
-
descriptionId
Build up this source iderence with a description iderence.- Parameters:
descriptionId- The description id.- Returns:
- this.
-
description
Build up this source reference with a description reference.- Parameters:
description- The description.- Returns:
- this.
-
qualifiers
Create a stream for the qualifiers.- Returns:
- a stream for the qualifiers.
-
getQualifiers
The qualifiers associated with this source reference.- Returns:
- The qualifiers associated with this source reference.
-
setQualifiers
Set the qualifiers associated with this source reference.- Parameters:
qualifiers- qualifiers to associate with this source reference.
-
qualifier
Build up this source reference with a qualifier.- Parameters:
qualifier- The qualifier.- Returns:
- this.
-
addQualifier
Add a qualifier.- Parameters:
qualifier- The qualifier.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
equals
-
hashCode
public int hashCode()
-