Package org.gbif.api.model.checklistbank
Class Reference
- java.lang.Object
-
- org.gbif.api.model.checklistbank.Reference
-
- All Implemented Interfaces:
NameUsageExtension
public class Reference extends Object implements NameUsageExtension
Reference Model Object represents a literature reference stating a bibliography for a taxon. Since the initial release of the GBIF API version 1.0 ChecklistBank has been modified to only store the entire citation string of a reference and none of the atomised fields which are now deprecated.- See Also:
- Reference Definition
-
-
Constructor Summary
Constructors Constructor Description Reference()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)StringgetAuthor()Deprecated.@NotNull StringgetCitation()A text string referring to an un-parsed bibliographic citation.StringgetDate()Deprecated.StringgetDoi()The pure DOI for the publication without potential http resolver or URI prefix.StringgetLink()Link.StringgetRemarks()Annotation of taxon-specific information related to the referenced publication.StringgetSource()IntegergetSourceTaxonKey()If the source is another name usage this is the taxonKey of that usage.IntegergetTaxonKey()The name usage "taxon" key this description belongs to.StringgetTitle()Deprecated.StringgetType()Used to assign a bibliographic reference to list of taxonomic or nomenclatural categories.inthashCode()voidsetAuthor(String author)Deprecated.voidsetCitation(String citation)voidsetDate(String date)Deprecated.voidsetDoi(String doi)voidsetLink(String link)voidsetRemarks(String remarks)voidsetSource(String source)voidsetSourceTaxonKey(Integer sourceTaxonKey)voidsetTaxonKey(Integer taxonKey)voidsetTitle(String title)Deprecated.voidsetType(String type)StringtoString()
-
-
-
Constructor Detail
-
Reference
public Reference()
-
-
Method Detail
-
getTaxonKey
public Integer getTaxonKey()
The name usage "taxon" key this description belongs to.- Specified by:
getTaxonKeyin interfaceNameUsageExtension
-
setTaxonKey
public void setTaxonKey(Integer taxonKey)
- Specified by:
setTaxonKeyin interfaceNameUsageExtension
-
getAuthor
@Nullable @Deprecated public String getAuthor()
Deprecated.The author or authors of the referenced work.Example: Patricia Hartge.
- Returns:
- the author
-
setAuthor
@Deprecated public void setAuthor(String author)
Deprecated.- Parameters:
author- the author to set
-
getCitation
@NotNull public @NotNull String getCitation()
A text string referring to an un-parsed bibliographic citation. The full citation given here should include all the details potentially found in the other atomised fields, i.e. includes authorship, title, etc.Example: Hartge, P., Genetics of reproductive lifespan. Nature Genetics 41, 637 - 638 (2009).
- Returns:
- the citation
-
setCitation
public void setCitation(String citation)
- Parameters:
citation- the citation to set
-
getDate
@Nullable @Deprecated public String getDate()
Deprecated.Date of publication, recommended ISO format YYYY or YYYY-MM-DD.- Returns:
- the publication date
-
setDate
@Deprecated public void setDate(String date)
Deprecated.
-
getDoi
@Nullable public String getDoi()
The pure DOI for the publication without potential http resolver or URI prefix. For example10.1038/ng0609-637instead ofdoi:10.1038/ng0609-637orhttp://dx.doi.org/10.1038/ng0609-637. A valid DOI always starts with10..- Returns:
- the doi
- See Also:
- Crossref DOI Info, DOI Handbook, Wikipedia
-
getRemarks
@Nullable public String getRemarks()
Annotation of taxon-specific information related to the referenced publication.Examples: "transferred H. nigritarsus to Acanolonia"; "Type specimen is a skeleton"
- Returns:
- the taxonomic remarks
-
setRemarks
public void setRemarks(String remarks)
-
getTitle
@Nullable @Deprecated public String getTitle()
Deprecated.Title of book or article.Example: "Genetics of reproductive lifespan", "Field Guide to Moths of Eastern North America".
- Returns:
- the title
-
setTitle
@Deprecated public void setTitle(String title)
Deprecated.- Parameters:
title- the title to set
-
getType
@Nullable public String getType()
Used to assign a bibliographic reference to list of taxonomic or nomenclatural categories. Best practice is to use a controlled vocabulary.Examples: Original publication of new combination (comb nov.)
- Returns:
- the publication type
-
getSource
@Nullable public String getSource()
- Specified by:
getSourcein interfaceNameUsageExtension- Returns:
- a source reference string
-
setSource
public void setSource(String source)
- Specified by:
setSourcein interfaceNameUsageExtension
-
getSourceTaxonKey
@Nullable public Integer getSourceTaxonKey()
Description copied from interface:NameUsageExtensionIf the source is another name usage this is the taxonKey of that usage. Only useful for the backbone dataset.- Specified by:
getSourceTaxonKeyin interfaceNameUsageExtension- Returns:
- The key of the name usage this instance is derived from.
-
setSourceTaxonKey
public void setSourceTaxonKey(Integer sourceTaxonKey)
- Specified by:
setSourceTaxonKeyin interfaceNameUsageExtension
-
-