Package org.gbif.api.model.checklistbank
Class NameUsage
java.lang.Object
org.gbif.api.model.checklistbank.NameUsage
- All Implemented Interfaces:
LinneanClassification,LinneanClassificationKeys
- Direct Known Subclasses:
NameUsageContainer
@Deprecated
public class NameUsage
extends Object
implements LinneanClassification, LinneanClassificationKeys
Deprecated.
A usage of a scientific name according to one particular Checklist including the GBIF Taxonomic Backbone,
the NUB. It is shown as species in the portal and API.
Backbone (NUB) usages have key==nubKey. Backbone usages can also be detected by either the NameUsage.isNub() method or by manually comparing the datasetKey with the fixed backbone datasetKey, see Constants.NUB_DATASET_KEY.
Name usages from other checklists with names that also exist in the backbone will have a nubKey that points to the related usage in the NUB.
To store not eagerly loaded subresources such as vernacular names or synonyms with a usage please use the
Backbone (NUB) usages have key==nubKey. Backbone usages can also be detected by either the NameUsage.isNub() method or by manually comparing the datasetKey with the fixed backbone datasetKey, see Constants.NUB_DATASET_KEY.
Name usages from other checklists with names that also exist in the backbone will have a nubKey that points to the related usage in the NUB.
To store not eagerly loaded subresources such as vernacular names or synonyms with a usage please use the
NameUsageContainer class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIssue(NameUsageIssue issue) Deprecated.booleanDeprecated.Deprecated.Deprecated.Deprecated.The taxon concept reference is usually a reference to some publication or author and year.Deprecated.Returns the authorship information for the scientific name.Deprecated.Deprecated.Returns the earlier name (basionym) for this scientific name.Deprecated.Deprecated.Deprecated.Return the class key for this usage.getClazz()Deprecated.Return the class for this usage.Deprecated.Return the optional sub dataset key for this usage.@NotNull UUIDDeprecated.Returns the key of the checklist that "hosts" this name usage.Deprecated.The date this record was deleted.Deprecated.Return the family for this usage.Deprecated.Return the family key for this usage.getGenus()Deprecated.Return the genus for this usage.Deprecated.Return the genus key for this usage.@NotNull LinkedHashMap<Integer,String> Deprecated.An ordered map with entries for all higher Linnean ranks down to the actual direct parent of this usage.getHigherRank(Rank rank) Deprecated.Gets a higher taxon property by passing the rank of it.getHigherRankKey(Rank rank) Deprecated.Gets a higher taxon key by passing the rank of it.@NotNull Set<NameUsageIssue>Deprecated.@NotNull IntegergetKey()Deprecated.Return the key that uniquely identifies this name usage.Deprecated.Return the kingdom for this usage.Deprecated.Return the kingdom key for this usage.Deprecated.The date this record was last crawled during clb indexing.Deprecated.The date this record was last interpreted during indexing.Deprecated.The interpreted dc:modified from the verbatim source data.Deprecated.Deprecated.Deprecated.The status related to the conformance to the relevant rules of nomenclature.Deprecated.intDeprecated.The number of all accepted taxonomic elements under this usage.getOrder()Deprecated.Return the order for this usage.Deprecated.Return the order key for this usage.@NotNull OriginDeprecated.The origin of this name usage record, i.e.Deprecated.The scientific name of the parent.Deprecated.Returns the immediate parent.Deprecated.Return the phylum for this usage.Deprecated.Return the phylum key for this usage.Deprecated.Pro parte synonyms, i.e.Deprecated.Original publication for this name usage.getRank()Deprecated.Returns the rank for this usage.Deprecated.A URI link or reference to the source of this record, the record's "homepage".Deprecated.@NotNull StringDeprecated.The scientific name (with date and authorship information if applicable).Deprecated.For backbone taxa the source taxon key refers to the original name usage that was used during backbone building and is the primary reason that this taxon exists in the backbone.Deprecated.Return the species for this usage.Deprecated.Return the species key for this usage.Deprecated.Return the canonical subgenus name for this usage.Deprecated.Return the subgenus key for this usage.Deprecated.The original taxonID of the name usage as found in the source.Deprecated.The taxonomic status of the name usage.Deprecated.A common or vernacular name for this usage.inthashCode()Deprecated.booleanisNub()Deprecated.booleanDeprecated.True for pro parte synonyms with multiple accepted usages.booleanDeprecated.Convenience method using the taxonomicStatus field.voidsetAccepted(String accepted) Deprecated.Sets the scientific name of the basionym, i.e.voidsetAcceptedKey(Integer acceptedKey) Deprecated.Sets the usage key for the accepted name.voidsetAccordingTo(String accordingTo) Deprecated.voidsetAuthorship(String authorship) Deprecated.voidsetBasionym(String basionym) Deprecated.sets the basionym name.voidsetBasionymKey(Integer basionymKey) Deprecated.voidsetCanonicalName(String canonicalName) Deprecated.voidsetClassKey(Integer classKey) Deprecated.voidDeprecated.voidsetConstituentKey(UUID constituentKey) Deprecated.voidsetDatasetKey(UUID datasetKey) Deprecated.voidsetDeleted(Date deleted) Deprecated.voidDeprecated.voidsetFamilyKey(Integer familyKey) Deprecated.voidDeprecated.voidsetGenusKey(Integer genusKey) Deprecated.voidsetIssues(Set<NameUsageIssue> issues) Deprecated.voidDeprecated.voidsetKingdom(String kingdom) Deprecated.voidsetKingdomKey(Integer kingdomKey) Deprecated.voidsetLastCrawled(Date lastCrawled) Deprecated.voidsetLastInterpreted(Date lastInterpreted) Deprecated.voidsetModified(Date modified) Deprecated.voidsetNameKey(Integer nameKey) Deprecated.voidsetNameType(NameType nameType) Deprecated.voidsetNomenclaturalStatus(Set<NomenclaturalStatus> nomenclaturalStatus) Deprecated.voidDeprecated.voidsetNumDescendants(int numDescendants) Deprecated.voidDeprecated.voidsetOrderKey(Integer orderKey) Deprecated.voidDeprecated.voidDeprecated.voidsetParentKey(Integer parentKey) Deprecated.voidDeprecated.voidsetPhylumKey(Integer phylumKey) Deprecated.voidsetProParteKey(Integer proParteKey) Deprecated.Sets the pro parte usage key.voidsetPublishedIn(String publishedIn) Deprecated.voidDeprecated.voidsetReferences(URI references) Deprecated.voidsetRemarks(String remarks) Deprecated.voidsetScientificName(String scientificName) Deprecated.voidsetSourceTaxonKey(Integer sourceTaxonKey) Deprecated.voidsetSpecies(String species) Deprecated.voidsetSpeciesKey(Integer speciesKey) Deprecated.voidsetSubgenus(String subgenus) Deprecated.voidsetSubgenusKey(Integer subgenusKey) Deprecated.voidsetTaxonID(String taxonID) Deprecated.voidsetTaxonomicStatus(TaxonomicStatus taxonomicStatus) Deprecated.voidsetVernacularName(String vernacularName) Deprecated.toString()Deprecated.
-
Constructor Details
-
NameUsage
public NameUsage()Deprecated. -
NameUsage
Deprecated.
-
-
Method Details
-
getNameKey
Deprecated.- Returns:
- the name key for retrieving a parsed name object
-
setNameKey
Deprecated. -
getSourceTaxonKey
Deprecated.For backbone taxa the source taxon key refers to the original name usage that was used during backbone building and is the primary reason that this taxon exists in the backbone.
All backbone name usages are built from several underlying checklist usages, but these are sorted by priority and the usage key for the highest priority one becomes the sourceTaxonKey for a backbone usage.
Some backbone usages do not have any source record altogether. For example if there is a subspecies found, but no matching parent species, the missing species will be created nevertheless and has no primary source.- Returns:
- The key of the name usage this backbone taxon is derived from.
-
setSourceTaxonKey
Deprecated. -
getAccepted
Deprecated.- Returns:
- the scientific name of the accepted name
-
setAccepted
Deprecated.Sets the scientific name of the basionym, i.e. original name usage. -
getAcceptedKey
Deprecated.- Returns:
- the name usage key of the accepted name
-
setAcceptedKey
Deprecated.Sets the usage key for the accepted name. -
getAccordingTo
Deprecated.The taxon concept reference is usually a reference to some publication or author and year.
The dwc:taxonAccordingTo reference is usually appended to the scientific name to further qualify the concept with "sensu" or "sec." being used for concatenation. E.g. "Acer nigrum sec. Gleason Cronquist 1991".
In the case of backbone taxa this refers to the primary checklist the name was found in.- Returns:
- the taxon concept reference
-
setAccordingTo
Deprecated.- Parameters:
accordingTo- the accordingTo to set
-
getAuthorship
Deprecated.Returns the authorship information for the scientific name.- Returns:
- the authorship
-
setAuthorship
Deprecated.- Parameters:
authorship- the authorship to set
-
getBasionym
Deprecated.- Returns:
- the scientific name of the basionym
-
setBasionym
Deprecated.sets the basionym name. -
getBasionymKey
Deprecated.Returns the earlier name (basionym) for this scientific name. Return null if the basionym does not exist.- Returns:
- the basionymKey
-
setBasionymKey
Deprecated.- Parameters:
basionymKey- the basionymKey to set
-
getCanonicalName
Deprecated.- Returns:
- the canonicalName
-
setCanonicalName
Deprecated.- Parameters:
canonicalName- the canonicalName to set
-
getDatasetKey
Deprecated.Returns the key of the checklist that "hosts" this name usage.- Returns:
- the datasetKey
-
setDatasetKey
Deprecated.- Parameters:
datasetKey- the datasetKey to set
-
getKey
Deprecated.Return the key that uniquely identifies this name usage.- Returns:
- the key
-
setKey
Deprecated.- Parameters:
key- the key to set
-
getNameType
Deprecated.- Returns:
- the type of name string classified by CLB.
-
setNameType
Deprecated.- Parameters:
nameType- the type of name string
-
getNomenclaturalStatus
Deprecated.The status related to the conformance to the relevant rules of nomenclature.Example: "invalid", "misapplied", "homotypic synonym", "accepted"
- Returns:
- the set of known nomenclaturalStatus values
- See Also:
-
setNomenclaturalStatus
Deprecated.- Parameters:
nomenclaturalStatus- the nomenclaturalStatus to set
-
getNubKey
Deprecated.- Returns:
- the taxon key of the matching backbone name usage
-
setNubKey
Deprecated.- Parameters:
nubKey- the nubKey to set
-
getNumDescendants
Deprecated.The number of all accepted taxonomic elements under this usage.- Returns:
- the number of descendants
-
setNumDescendants
Deprecated.- Parameters:
numDescendants- the n umber of descendants to set
-
getOrigin
Deprecated.The origin of this name usage record, i.e. the reason why it exists. In most cases this is because the record existed explicitly in the checklist sources, but some usages are created de novo because they exist implicitly in the data.- Returns:
- the name usage origin
- See Also:
-
setOrigin
Deprecated.- Parameters:
origin- the origin to set
-
getParent
Deprecated.The scientific name of the parent.- Returns:
- the parent name
-
setParent
Deprecated.- Parameters:
parent- the parent name to set
-
getParentKey
Deprecated.Returns the immediate parent. If this usage if for the highest taxonomic level, return null.- Returns:
- the parentKey
-
setParentKey
Deprecated.- Parameters:
parentKey- the parentKey to set
-
getProParteKey
Deprecated.Pro parte synonyms, i.e. a synonym with multiple accepted names, are grouped by a single, primary name usage key.- Returns:
- the primary name usage key for a pro parte synonym or null
-
setProParteKey
Deprecated.Sets the pro parte usage key. -
getPublishedIn
Deprecated.Original publication for this name usage.- Returns:
- the publishedIn
-
setPublishedIn
Deprecated.- Parameters:
publishedIn- the publishedIn to set
-
getRank
Deprecated.Returns the rank for this usage.Example: "Kingdom", "Genus"
- Returns:
- the rank
-
setRank
Deprecated.- Parameters:
rank- the rank to set
-
getScientificName
Deprecated.The scientific name (with date and authorship information if applicable).Example: "Coleoptera" (order), "Vespertilionidae" (family), "Manis" (genus), "Ctenomys sociabilis" (genus + specific name), "Ambystoma tigrinum diaboli" (genus + specific name + infraspecific name), "Quercus agrifolia var. oxyadenia (Torr.)"
- Returns:
- the scientificName
-
setScientificName
Deprecated.- Parameters:
scientificName- the scientificName to set
-
getConstituentKey
Deprecated.Return the optional sub dataset key for this usage.- Returns:
- the subDatasetKey or null
-
setConstituentKey
Deprecated.- Parameters:
constituentKey- to set
-
getVernacularName
Deprecated.A common or vernacular name for this usage.Example: Andean Condor", "Condor Andino", "American Eagle", "Gänsegeier".
- Returns:
- the vernacularName
-
setVernacularName
Deprecated.- Parameters:
vernacularName- the vernacularName to set
-
getKingdom
Deprecated.Description copied from interface:LinneanClassificationReturn the kingdom for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Specified by:
getKingdomin interfaceLinneanClassification- Returns:
- the kingdom
-
setKingdom
Deprecated.- Specified by:
setKingdomin interfaceLinneanClassification- Parameters:
kingdom- the kingdom to set
-
getPhylum
Deprecated.Description copied from interface:LinneanClassificationReturn the phylum for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Specified by:
getPhylumin interfaceLinneanClassification- Returns:
- the phylum
-
setPhylum
Deprecated.- Specified by:
setPhylumin interfaceLinneanClassification- Parameters:
phylum- the phylum to set
-
getClazz
Deprecated.Description copied from interface:LinneanClassificationReturn the class for this usage. If the usage is for something above the "class" taxonomic level, return null.- Specified by:
getClazzin interfaceLinneanClassification- Returns:
- the class
-
setClazz
Deprecated.- Specified by:
setClazzin interfaceLinneanClassification- Parameters:
clazz- the clazz to set
-
getOrder
Deprecated.Description copied from interface:LinneanClassificationReturn the order for this usage. If the usage is for something above the "order" taxonomic level, return null.- Specified by:
getOrderin interfaceLinneanClassification- Returns:
- the order
-
setOrder
Deprecated.- Specified by:
setOrderin interfaceLinneanClassification- Parameters:
order- the order to set
-
getFamily
Deprecated.Description copied from interface:LinneanClassificationReturn the family for this usage. If the usage is for something above the "family" taxonomic level, return null.- Specified by:
getFamilyin interfaceLinneanClassification- Returns:
- the family
-
setFamily
Deprecated.- Specified by:
setFamilyin interfaceLinneanClassification- Parameters:
family- the family to set
-
getGenus
Deprecated.Description copied from interface:LinneanClassificationReturn the genus for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Specified by:
getGenusin interfaceLinneanClassification- Returns:
- the genus
-
setGenus
Deprecated.- Specified by:
setGenusin interfaceLinneanClassification- Parameters:
genus- the genus to set
-
getSubgenus
Deprecated.Description copied from interface:LinneanClassificationReturn the canonical subgenus name for this usage. If the usage is for something above the "subgenus" taxonomic level, return null.- Specified by:
getSubgenusin interfaceLinneanClassification- Returns:
- the subgenus name
-
setSubgenus
Deprecated.- Specified by:
setSubgenusin interfaceLinneanClassification- Parameters:
subgenus- the subgenus canonical name
-
getSpecies
Deprecated.Description copied from interface:LinneanClassificationReturn the species for this usage. If the usage is for something above the "species" taxonomic level, return null.- Specified by:
getSpeciesin interfaceLinneanClassification- Returns:
- the species
-
setSpecies
Deprecated.- Specified by:
setSpeciesin interfaceLinneanClassification- Parameters:
species- the species to set
-
getKingdomKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the kingdom key for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Specified by:
getKingdomKeyin interfaceLinneanClassificationKeys- Returns:
- the kingdomKey
-
setKingdomKey
Deprecated.- Specified by:
setKingdomKeyin interfaceLinneanClassificationKeys- Parameters:
kingdomKey- the kingdomKey to set
-
getPhylumKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the phylum key for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Specified by:
getPhylumKeyin interfaceLinneanClassificationKeys- Returns:
- the phylumKey
-
setPhylumKey
Deprecated.- Specified by:
setPhylumKeyin interfaceLinneanClassificationKeys- Parameters:
phylumKey- the phylumKey to set
-
getClassKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the class key for this usage. If the usage is for something above the "class" taxonomic level, return null.- Specified by:
getClassKeyin interfaceLinneanClassificationKeys- Returns:
- the classKey
-
setClassKey
Deprecated.- Specified by:
setClassKeyin interfaceLinneanClassificationKeys- Parameters:
classKey- the classKey to set
-
getOrderKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the order key for this usage. If the usage is for something above the "order" taxonomic level, return null.- Specified by:
getOrderKeyin interfaceLinneanClassificationKeys- Returns:
- the orderKey
-
setOrderKey
Deprecated.- Specified by:
setOrderKeyin interfaceLinneanClassificationKeys- Parameters:
orderKey- the orderKey to set
-
getFamilyKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the family key for this usage. If the usage is for something above the "family" taxonomic level, return null.- Specified by:
getFamilyKeyin interfaceLinneanClassificationKeys- Returns:
- the familyKey
-
setFamilyKey
Deprecated.- Specified by:
setFamilyKeyin interfaceLinneanClassificationKeys- Parameters:
familyKey- the familyKey to set
-
getGenusKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the genus key for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Specified by:
getGenusKeyin interfaceLinneanClassificationKeys- Returns:
- the genusKey
-
setGenusKey
Deprecated.- Specified by:
setGenusKeyin interfaceLinneanClassificationKeys- Parameters:
genusKey- the genusKey to set
-
getSubgenusKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the subgenus key for this usage. If the usage is for something above the "subgenus" taxonomic level, return null.- Specified by:
getSubgenusKeyin interfaceLinneanClassificationKeys- Returns:
- subgenusKey
-
setSubgenusKey
Deprecated.- Specified by:
setSubgenusKeyin interfaceLinneanClassificationKeys- Parameters:
subgenusKey- the subgenus usage key
-
getSpeciesKey
Deprecated.Description copied from interface:LinneanClassificationKeysReturn the species key for this usage. If the usage is for something above the "species" taxonomic level, return null.- Specified by:
getSpeciesKeyin interfaceLinneanClassificationKeys- Returns:
- the speciesKey
-
setSpeciesKey
Deprecated.- Specified by:
setSpeciesKeyin interfaceLinneanClassificationKeys- Parameters:
speciesKey- the speciesKey to set
-
getRemarks
Deprecated. -
setRemarks
Deprecated. -
getCanonicalOrScientificName
Deprecated.- Returns:
- the canonicalName or scientific name in case its null
-
getReferences
Deprecated.A URI link or reference to the source of this record, the record's "homepage".Example: https://www.catalogueoflife.org/data/taxon/4R5YN
- Returns:
- the link
-
setReferences
Deprecated. -
getHigherRank
Deprecated.Description copied from interface:LinneanClassificationGets a higher taxon property by passing the rank of it. Only Linnean ranks are supported.- Specified by:
getHigherRankin interfaceLinneanClassification- Parameters:
rank- the higher linnean rank to retrieve- Returns:
- the name of the higher taxon or null if rank doesnt exist
-
getHigherRankKey
Deprecated.Description copied from interface:LinneanClassificationKeysGets a higher taxon key by passing the rank of it. Only Linnean ranks are supported.- Specified by:
getHigherRankKeyin interfaceLinneanClassificationKeys- Parameters:
rank- the higher linnean rank to retrieve- Returns:
- the key of the higher taxon or null if rank doesnt exist
-
getHigherClassificationMap
Deprecated.An ordered map with entries for all higher Linnean ranks down to the actual direct parent of this usage. The map starts with the highest rank, e.g. the kingdom and maps the name usage key to its canonical name. The name usage itself is never included, even though a higher rank might point to the usage itself.- Returns:
- map of higher ranks
-
getTaxonID
Deprecated.The original taxonID of the name usage as found in the source. For backbone taxa and name usages with an origin different to SOURCE this is null. -
getTaxonomicStatus
Deprecated.The taxonomic status of the name usage. Can be null, but for all synonyms with an accepted name usage it is guaranteed to exist.- Returns:
- the taxonomicStatus, can be null
-
setTaxonomicStatus
Deprecated.- Parameters:
taxonomicStatus- the taxonomicStatus to set
-
getModified
Deprecated.The interpreted dc:modified from the verbatim source data. Ideally indicating when a record was last modified in the source. -
setModified
Deprecated. -
getDeleted
Deprecated.The date this record was deleted. Logical deletions only occur for backbone usages! -
setDeleted
Deprecated. -
getLastCrawled
Deprecated.The date this record was last crawled during clb indexing. -
setLastCrawled
Deprecated. -
getLastInterpreted
Deprecated.The date this record was last interpreted during indexing. This includes matching to the backbone. -
setLastInterpreted
Deprecated. -
getIssues
Deprecated. -
setIssues
Deprecated. -
addIssue
Deprecated. -
isNub
Deprecated. -
isProParte
Deprecated.True for pro parte synonyms with multiple accepted usages.- Returns:
- true if proParte, false otherwise
-
isSynonym
Deprecated.Convenience method using the taxonomicStatus field.- Returns:
- true if it's a synonym
-
setTaxonID
Deprecated. -
equals
Deprecated. -
hashCode
Deprecated. -
toString
Deprecated.
-