Package org.gedcomx.source
Class SourceDescription
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.source.SourceDescription
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,HasFields,SupportsExtensionElements,ReferencesSources
public class SourceDescription
extends HypermediaEnabledData
implements Attributable, HasNotes, HasFields, ReferencesSources
Represents a description of a source.
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild out this source description with an about reference.voidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidaddAuthors(URI authors) Add a authors.voidaddCitation(SourceCitation citation) Add a citation.voidAdd a field to the source description.voidaddKnownStatus(ResourceStatusType status) Add the given ResourceStatusType's URI to the list of statuses.voidAdd a rights.voidAdd the given resource status type URI to the list of statuses.analysis(ResourceReference analysis) Build out this source description with an analyis.attribution(Attribution attribution) Build out this source description with attribution.Build out this source description with a authors.Build out this source description with a citation.citation(SourceCitation citation) Build out this source description with a citation.componentOf(SourceDescription componentOf) Build out this source description with a component of.componentOf(SourceReference componentOf) Build out this source description with a component of.Build out this source description with coverage.Build out this source description with a created date.description(String description) Build out this source description with a description.description(TextValue description) Build out this source description with a description.descriptorRef(ResourceReference descriptorRef) Build out this source description with a descriptor ref.voidembed(SourceDescription description) Embed the specified description.booleanextensionElement(Object element) Build this out with a field.getAbout()The URI (if applicable) of the actual source.A reference to the analysis document explaining the analysis that went into this description of the source.The attribution metadata for this source description.The authors for this source.The preferred bibliographic citation for this source.The bibliographic citations for this source.A reference to the source that contains this source.Declarations of the coverage of the source.The date the source was created.Human-readable descriptions of the source.Reference to a descriptor of fields and type of data that can be expected to be extracted from the source.The fields that are applicable to the resource being described.The list of identifiers for the source.The type of the resource being described.getLang()The language of this genealogical data set.A reference to the entity that mediates access to the described source.Hint about the media (MIME) type of the resource being described.The date the source was last modified.getNotes()Notes about a source.Find the long-term, persistent identifier for this source from the list of identifiers.A reference to the entity responsible for making the described source available.The URI that this resource has been replaced by.The list of resources that this resource replaces.Reference to an agent describing the repository in which the source is found.The type of the resource being described.The rights for this source.A sort key to be used in determining the position of this source relative to other sources in the same collection.References to any sources to which this source is related (usually applicable to sources that are derived from or contained in another source).The list of status types for the source.getTitle()The preferred title for this source description.A label for the title of this description.A list of titles for this source.gets the version of this resourceinthashCode()Build up this object with an id.identifier(Identifier identifier) Build out this source description with an identifier.Build out this envelope with a lang.Build up this data with a link.Build up this data with a link.mediator(ResourceReference mediator) Build out this source description with a mediator.Build out this source description with a media type.Build out this source description with a modified date.Build out this source description with a note.persistentId(URI persistentId) Build out this source with a persistent ID.publisher(ResourceReference publisher) Build out this source description with a publisher.repository(Agent repository) Build out this source description with a repository.repository(ResourceReference repository) Build out this source description with a repository.resourceType(URI resourceType) Build of this source description with a resource type.resourceType(ResourceType resourceType) Build of this source description with a resource type.Build out this source description with a rights.voidThe URI (if applicable) of the actual source.voidsetAnalysis(ResourceReference analysis) A reference to the analysis document explaining the analysis that went into this description of the source.voidsetAttribution(Attribution attribution) The attribution metadata for this source description.voidsetAuthors(List<URI> authors) The authors for this source.voidsetCitations(List<SourceCitation> citations) The bibliographic citations for this source.voidsetComponentOf(SourceReference componentOf) A reference to the source that contains this source.voidsetCoverage(List<Coverage> coverage) Declarations of the coverage of the source.voidsetCreated(Date created) The date the source was created.voidsetDescriptions(List<TextValue> descriptions) Human-readable descriptions of the source.voidsetDescriptorRef(ResourceReference descriptorRef) Reference to a descriptor of fields and type of data that can be expected to be extracted from the source.voidThe fields that are applicable to the resource being described.voidsetIdentifiers(List<Identifier> identifiers) The list of identifiers of the source.voidsetKnownType(ResourceType type) The type of the resource being described.voidThe language of this genealogical data set.voidsetMediator(ResourceReference mediator) A reference to the entity that mediates access to the described source.voidsetMediatorURI(URI mediator) A reference to the entity that mediates access to the described source.voidsetMediaType(String mediaType) Hint about the media (MIME) type of the resource being described.voidsetModified(Date modified) The date the source was last modified.voidNotes about a source.voidsetPersistentId(URI persistentId) A long-term, persistent, globally unique identifier for this source.voidsetPublisher(ResourceReference publisher) A reference to the entity responsible for making the described source available.voidsetPublisherURI(URI publisher) A reference to the entity responsible for making the described source available.voidsetReplacedBy(URI replacedBy) The URI that this resource has been replaced by.voidsetReplaces(List<URI> replaces) The list of resources that this resource replaces.voidsetRepository(ResourceReference repository) Reference to an agent describing the repository in which the source is found.voidsetResourceType(URI resourceType) The type of the resource being described.voidThe rights for this source.voidsetSortKey(String sortKey) A sort key to be used in determining the position of this source relative to other sources in the same collection.voidsetSources(List<SourceReference> sources) References to any sources to which this source is related (usually applicable to sources that are derived from or contained in another source).voidsetStatuses(List<URI> statuses) The list of status types for the source.voidsetTitleLabel(TextValue titleLabel) A label for the title of this description.voidA list of titles for this source.voidsetVersion(String version) sets the version of this resourceBuild out this source description with a sort key.source(SourceReference source) Build out this source description by adding a source reference.Build out this source description with a title.Build out this source description with a title.titleLabel(TextValue titleLabel) Build this out by applying a label for the title of this description.toString()Provide a simple toString() method.Build out this source description with a version.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
-
SourceDescription
public SourceDescription() -
SourceDescription
-
-
Method Details
-
getLang
The language of this genealogical data set. See http://www.w3.org/International/articles/language-tags/. Note that some language-enabled elements MAY override the language.- Returns:
- The language of the genealogical data.
-
setLang
The language of this genealogical data set. See http://www.w3.org/International/articles/language-tags/. Note that some language-enabled elements MAY override the language.- Parameters:
lang- The language of this genealogical data.
-
lang
Build out this envelope with a lang.- Parameters:
lang- The lang.- 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
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
getResourceType
The type of the resource being described.- Returns:
- The type of the resource being described.
-
setResourceType
The type of the resource being described.- Parameters:
resourceType- The type of the resource being described.
-
resourceType
Build of this source description with a resource type.- Parameters:
resourceType- The resource type.- Returns:
- this.
-
resourceType
Build of this source description with a resource type.- Parameters:
resourceType- The resource type.- Returns:
- this.
-
getKnownType
The type of the resource being described.- Returns:
- The type of the resource being described.
-
setKnownType
The type of the resource being described.- Parameters:
type- The type of the resource being described.
-
getRights
The rights for this source.- Returns:
- The rights for this source.
-
setRights
The rights for this source.- Parameters:
rights- The rights for this source.
-
rights
Build out this source description with a rights.- Parameters:
rights- The rights.- Returns:
- this.
-
addRights
Add a rights.- Parameters:
rights- The rights to be added.
-
getCitation
The preferred bibliographic citation for this source.- Returns:
- The preferred bibliographic citation for this source.
-
getCitations
The bibliographic citations for this source.- Returns:
- The bibliographic citations for this source.
-
setCitations
The bibliographic citations for this source.- Parameters:
citations- The bibliographic citations for this source.
-
citation
Build out this source description with a citation.- Parameters:
citation- The citation.- Returns:
- this.
-
citation
Build out this source description with a citation.- Parameters:
citation- The citation.- Returns:
- this.
-
addCitation
Add a citation.- Parameters:
citation- The citation to be added.
-
getMediaType
Hint about the media (MIME) type of the resource being described.- Returns:
- Hint about the media (MIME) type of the resource being described.
-
setMediaType
Hint about the media (MIME) type of the resource being described.- Parameters:
mediaType- Hint about the media (MIME) type of the resource being described.
-
mediaType
Build out this source description with a media type.- Parameters:
mediaType- The media type.- Returns:
- this.
-
getAbout
The URI (if applicable) of the actual source.- Returns:
- The URI (if applicable) of the actual source.
-
setAbout
The URI (if applicable) of the actual source.- Parameters:
about- The URI (if applicable) of the actual source.
-
about
Build out this source description with an about reference.- Parameters:
about- the about.- Returns:
- this.
-
getMediator
A reference to the entity that mediates access to the described source.- Returns:
- A reference to the entity that mediates access to the described source.
-
setMediator
A reference to the entity that mediates access to the described source.- Parameters:
mediator- A reference to the entity that mediates access to the described source.
-
mediator
Build out this source description with a mediator.- Parameters:
mediator- The mediator.- Returns:
- this.
-
setMediatorURI
A reference to the entity that mediates access to the described source.- Parameters:
mediator- A reference to the entity that mediates access to the described source.
-
getPublisher
A reference to the entity responsible for making the described source available.- Returns:
- A reference to the entity responsible for making the described source available.
-
setPublisher
A reference to the entity responsible for making the described source available.- Parameters:
publisher- A reference to the entity responsible for making the described source available.
-
publisher
Build out this source description with a publisher.- Parameters:
publisher- The publisher.- Returns:
- this.
-
setPublisherURI
A reference to the entity responsible for making the described source available.- Parameters:
publisher- A reference to the entity responsible for making the described source available.
-
getAuthors
The authors for this source.- Returns:
- The authors for this source.
-
setAuthors
The authors for this source.- Parameters:
authors- The authors for this source.
-
authors
Build out this source description with a authors.- Parameters:
authors- The authors.- Returns:
- this.
-
addAuthors
Add a authors.- Parameters:
authors- The authors to be added.
-
getSources
References to any sources to which this source is related (usually applicable to sources that are derived from or contained in another source).- Specified by:
getSourcesin interfaceReferencesSources- Returns:
- References to any sources to which this source is related (usually applicable to sources that are derived from or contained in another source).
-
setSources
References to any sources to which this source is related (usually applicable to sources that are derived from or contained in another source).- Specified by:
setSourcesin interfaceReferencesSources- Parameters:
sources- References to any sources to which this source is related (usually applicable to sources that are derived from or contained in another source).
-
source
Build out this source description by adding a source reference.- Parameters:
source- The source reference.- Returns:
- this.
-
getAnalysis
A reference to the analysis document explaining the analysis that went into this description of the source.- Returns:
- A reference to the analysis document explaining the analysis that went into this description of the source.
-
setAnalysis
A reference to the analysis document explaining the analysis that went into this description of the source.- Parameters:
analysis- A reference to the analysis document explaining the analysis that went into this description of the source.
-
analysis
Build out this source description with an analyis.- Parameters:
analysis- The analysis.- Returns:
- this.
-
getComponentOf
A reference to the source that contains this source.- Returns:
- A reference to the source that contains this source.
-
setComponentOf
A reference to the source that contains this source.- Parameters:
componentOf- A reference to the source that contains this source.
-
componentOf
Build out this source description with a component of.- Parameters:
componentOf- The component of.- Returns:
- this.
-
componentOf
Build out this source description with a component of.- Parameters:
componentOf- The component of.- Returns:
- this.
-
getTitle
The preferred title for this source description.- Returns:
- The preferred title for this source description.
-
getTitles
A list of titles for this source.- Returns:
- A list of titles for this source.
-
setTitles
A list of titles for this source.- Parameters:
titles- A list of titles for this source.
-
title
Build out this source description with a title.- Parameters:
title- The title.- Returns:
- this.
-
title
Build out this source description with a title.- Parameters:
title- The title.- Returns:
- this.
-
getTitleLabel
A label for the title of this description.- Returns:
- A label for the title of this description.
-
setTitleLabel
A label for the title of this description.- Parameters:
titleLabel- A label for the title of this description.
-
titleLabel
Build this out by applying a label for the title of this description.- Parameters:
titleLabel- The title label.- Returns:
- this.
-
getNotes
Notes about a source. -
setNotes
Notes about a source. -
note
Build out this source description with a note.- Parameters:
note- the note.- Returns:
- this.
-
getAttribution
The attribution metadata for this source description.- Specified by:
getAttributionin interfaceAttributable- Returns:
- The attribution metadata for this source description.
-
setAttribution
The attribution metadata for this source description.- Specified by:
setAttributionin interfaceAttributable- Parameters:
attribution- The attribution metadata for this source description.
-
attribution
Build out this source description with attribution.- Parameters:
attribution- The attribution.- Returns:
- this.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
getPersistentId
Find the long-term, persistent identifier for this source from the list of identifiers.- Returns:
- The long-term, persistent identifier for this source.
-
setPersistentId
A long-term, persistent, globally unique identifier for this source.- Parameters:
persistentId- A long-term, persistent, globally unique identifier for this source.
-
persistentId
Build out this source with a persistent ID.- Parameters:
persistentId- A long-term, persistent, globally unique identifier for this source.- Returns:
- this.
-
getReplacedBy
The URI that this resource has been replaced by.- Returns:
- What this description is replaced by.
-
setReplacedBy
The URI that this resource has been replaced by. This resource is some kind of duplicate of that other one. This happens when a newer or better version is found, and this one is thus deprecated; or when this resource is merged into another one and this one is thus tombstoned or deleted.- Parameters:
replacedBy- - URI of a resource that replaces this one.
-
getReplaces
The list of resources that this resource replaces.- Returns:
- The list of identifiers for the source.
-
setReplaces
The list of resources that this resource replaces.- Parameters:
replaces- The list of identifiers of the source.
-
getStatuses
The list of status types for the source.- Returns:
- The list of status types for the source.
-
setStatuses
The list of status types for the source.- Parameters:
statuses- The list of identifiers of the source.
-
addKnownStatus
Add the given ResourceStatusType's URI to the list of statuses.- Parameters:
status- - ResourceStatusType to add to the statuses list.
-
addStatus
Add the given resource status type URI to the list of statuses.- Parameters:
status- - URI to add to the list of statuses.
-
getIdentifiers
The list of identifiers for the source.- Returns:
- The list of identifiers for the source.
-
setIdentifiers
The list of identifiers of the source.- Parameters:
identifiers- The list of identifiers of the source.
-
identifier
Build out this source description with an identifier.- Parameters:
identifier- the identifier.- Returns:
- this.
-
getSortKey
A sort key to be used in determining the position of this source relative to other sources in the same collection.- Returns:
- A sort key to be used in determining the position of this source relative to other sources in the same collection.
-
setSortKey
A sort key to be used in determining the position of this source relative to other sources in the same collection.- Parameters:
sortKey- A sort key to be used in determining the position of this source relative to other sources in the same collection.
-
sortKey
Build out this source description with a sort key.- Parameters:
sortKey- The sort key.- Returns:
- This.
-
getDescriptions
Human-readable descriptions of the source.- Returns:
- Human-readable descriptions of the source.
-
setDescriptions
Human-readable descriptions of the source.- Parameters:
descriptions- Human-readable descriptions of the source.
-
description
Build out this source description with a description.- Parameters:
description- The description.- Returns:
- this.
-
description
Build out this source description with a description.- Parameters:
description- The description.- Returns:
- this.
-
getCreated
The date the source was created.- Returns:
- The date the source was created.
-
setCreated
The date the source was created.- Parameters:
created- The date the source was created.
-
created
Build out this source description with a created date.- Parameters:
created- The created date.- Returns:
- this.
-
getModified
The date the source was last modified.- Returns:
- The date the source was last modified.
-
setModified
The date the source was last modified.- Parameters:
modified- The date the source was last modified.
-
modified
Build out this source description with a modified date.- Parameters:
modified- the modified date.- Returns:
- this
-
getCoverage
Declarations of the coverage of the source.- Returns:
- Declarations of the coverage of the source.
-
setCoverage
Declarations of the coverage of the source.- Parameters:
coverage- Declarations of the coverage of the source.
-
coverage
Build out this source description with coverage.- Parameters:
coverage- The coverage.- Returns:
- this.
-
getFields
The fields that are applicable to the resource being described. -
setFields
The fields that are applicable to the resource being described. -
field
Build this out with a field.- Parameters:
field- The field.- Returns:
- this.
-
addField
Add a field to the source description.- Parameters:
field- The field to be added.
-
getRepository
Reference to an agent describing the repository in which the source is found.- Returns:
- Reference to an agent describing the repository in which the source is found.
-
setRepository
Reference to an agent describing the repository in which the source is found.- Parameters:
repository- Reference to an agent describing the repository in which the source is found.
-
repository
Build out this source description with a repository.- Parameters:
repository- The repository.- Returns:
- this.
-
repository
Build out this source description with a repository.- Parameters:
repository- The repository.- Returns:
- this.
-
getDescriptorRef
Reference to a descriptor of fields and type of data that can be expected to be extracted from the source.- Returns:
- Reference to a descriptor of fields and type of data that can be expected to be extracted from the source.
-
setDescriptorRef
Reference to a descriptor of fields and type of data that can be expected to be extracted from the source.- Parameters:
descriptorRef- Reference to a descriptor of fields and type of data that can be expected to be extracted from the source.
-
descriptorRef
Build out this source description with a descriptor ref.- Parameters:
descriptorRef- The descriptor ref.- Returns:
- this.
-
getVersion
gets the version of this resource- Returns:
- The version of this resource
-
setVersion
sets the version of this resource- Parameters:
version- the version of this resource
-
version
Build out this source description with a version.- Parameters:
version- the version of this resource- Returns:
- this.
-
embed
Embed the specified description.- Parameters:
description- The description to embed.
-
toString
Provide a simple toString() method.- Overrides:
toStringin classExtensibleData
-
equals
-
hashCode
public int hashCode()
-