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 boolean
equals(Object o)
String
getAuthor()
Deprecated.@NotNull String
getCitation()
A text string referring to an un-parsed bibliographic citation.String
getDate()
Deprecated.String
getDoi()
The pure DOI for the publication without potential http resolver or URI prefix.String
getLink()
Link.String
getRemarks()
Annotation of taxon-specific information related to the referenced publication.String
getSource()
Integer
getSourceTaxonKey()
If the source is another name usage this is the taxonKey of that usage.Integer
getTaxonKey()
The name usage "taxon" key this description belongs to.String
getTitle()
Deprecated.String
getType()
Used to assign a bibliographic reference to list of taxonomic or nomenclatural categories.int
hashCode()
void
setAuthor(String author)
Deprecated.void
setCitation(String citation)
void
setDate(String date)
Deprecated.void
setDoi(String doi)
void
setLink(String link)
void
setRemarks(String remarks)
void
setSource(String source)
void
setSourceTaxonKey(Integer sourceTaxonKey)
void
setTaxonKey(Integer taxonKey)
void
setTitle(String title)
Deprecated.void
setType(String type)
String
toString()
-
-
-
Constructor Detail
-
Reference
public Reference()
-
-
Method Detail
-
getTaxonKey
public Integer getTaxonKey()
The name usage "taxon" key this description belongs to.- Specified by:
getTaxonKey
in interfaceNameUsageExtension
-
setTaxonKey
public void setTaxonKey(Integer taxonKey)
- Specified by:
setTaxonKey
in 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-637
instead ofdoi:10.1038/ng0609-637
orhttp://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:
getSource
in interfaceNameUsageExtension
- Returns:
- a source reference string
-
setSource
public void setSource(String source)
- Specified by:
setSource
in interfaceNameUsageExtension
-
getSourceTaxonKey
@Nullable public Integer getSourceTaxonKey()
Description copied from interface:NameUsageExtension
If the source is another name usage this is the taxonKey of that usage. Only useful for the backbone dataset.- Specified by:
getSourceTaxonKey
in interfaceNameUsageExtension
- Returns:
- The key of the name usage this instance is derived from.
-
setSourceTaxonKey
public void setSourceTaxonKey(Integer sourceTaxonKey)
- Specified by:
setSourceTaxonKey
in interfaceNameUsageExtension
-
-