public class NameUsage extends Object implements LinneanClassification, LinneanClassificationKeys
NameUsageContainer class.| Modifier and Type | Method and Description |
|---|---|
void |
addIssue(NameUsageIssue issue) |
boolean |
equals(Object o) |
String |
getAccepted() |
Integer |
getAcceptedKey() |
String |
getAccordingTo()
The taxon concept reference is usually a reference to some publication or author and year.
|
String |
getAuthorship()
Returns the authorship information for the scientific name.
|
String |
getBasionym() |
Integer |
getBasionymKey()
Returns the earlier name (basionym) for this scientific name.
|
String |
getCanonicalName() |
String |
getCanonicalOrScientificName() |
Integer |
getClassKey()
Return the class key for this usage.
|
String |
getClazz()
Return the class for this usage.
|
UUID |
getConstituentKey()
Return the optional sub dataset key for this usage.
|
@NotNull UUID |
getDatasetKey()
Returns the key of the checklist that "hosts" this name usage.
|
Date |
getDeleted()
The date this record was deleted.
|
String |
getFamily()
Return the family for this usage.
|
Integer |
getFamilyKey()
Return the family key for this usage.
|
String |
getGenus()
Return the genus for this usage.
|
Integer |
getGenusKey()
Return the genus key for this usage.
|
@NotNull LinkedHashMap<Integer,String> |
getHigherClassificationMap()
An ordered map with entries for all higher Linnean ranks down to the actual direct parent of this usage.
|
String |
getHigherRank(Rank rank)
Gets a higher taxon property by passing the rank of it.
|
Integer |
getHigherRankKey(Rank rank)
Gets a higher taxon key by passing the rank of it.
|
@NotNull Set<NameUsageIssue> |
getIssues() |
@NotNull Integer |
getKey()
Return the key that uniquely identifies this name usage.
|
String |
getKingdom()
Return the kingdom for this usage.
|
Integer |
getKingdomKey()
Return the kingdom key for this usage.
|
Date |
getLastCrawled()
The date this record was last crawled during clb indexing.
|
Date |
getLastInterpreted()
The date this record was last interpreted during indexing.
|
Date |
getModified()
The interpreted dc:modified from the verbatim source data.
|
Integer |
getNameKey() |
NameType |
getNameType() |
Set<NomenclaturalStatus> |
getNomenclaturalStatus()
The status related to the conformance to the relevant rules of nomenclature.
|
Integer |
getNubKey() |
int |
getNumDescendants()
The number of all accepted taxonomic elements under this usage.
|
String |
getOrder()
Return the order for this usage.
|
Integer |
getOrderKey()
Return the order key for this usage.
|
@NotNull Origin |
getOrigin()
The origin of this name usage record, i.e.
|
String |
getParent()
The scientific name of the parent.
|
Integer |
getParentKey()
Returns the immediate parent.
|
String |
getPhylum()
Return the phylum for this usage.
|
Integer |
getPhylumKey()
Return the phylum key for this usage.
|
Integer |
getProParteKey()
Pro parte synonyms, i.e.
|
String |
getPublishedIn()
Original publication for this name usage.
|
Rank |
getRank()
Returns the rank for this usage.
|
URI |
getReferences()
A URI link or reference to the source of this record, the record's "homepage".
|
String |
getRemarks() |
@NotNull String |
getScientificName()
The scientific name (with date and authorship information if applicable).
|
Integer |
getSourceTaxonKey()
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.
|
String |
getSpecies()
Return the species for this usage.
|
Integer |
getSpeciesKey()
Return the species key for this usage.
|
String |
getSubgenus()
Return the canonical subgenus name for this usage.
|
Integer |
getSubgenusKey()
Return the subgenus key for this usage.
|
String |
getTaxonID()
The original taxonID of the name usage as found in the source.
|
TaxonomicStatus |
getTaxonomicStatus()
The taxonomic status of the name usage.
|
String |
getVernacularName()
A common or vernacular name for this usage.
|
int |
hashCode() |
boolean |
isNub() |
boolean |
isProParte()
True for pro parte synonyms with multiple accepted usages.
|
boolean |
isSynonym()
Convenience method using the taxonomicStatus field.
|
void |
setAccepted(String accepted)
Sets the scientific name of the basionym, i.e.
|
void |
setAcceptedKey(Integer acceptedKey)
Sets the usage key for the accepted name.
|
void |
setAccordingTo(String accordingTo) |
void |
setAuthorship(String authorship) |
void |
setBasionym(String basionym)
sets the basionym name.
|
void |
setBasionymKey(Integer basionymKey) |
void |
setCanonicalName(String canonicalName) |
void |
setClassKey(Integer classKey) |
void |
setClazz(String clazz) |
void |
setConstituentKey(UUID constituentKey) |
void |
setDatasetKey(UUID datasetKey) |
void |
setDeleted(Date deleted) |
void |
setFamily(String family) |
void |
setFamilyKey(Integer familyKey) |
void |
setGenus(String genus) |
void |
setGenusKey(Integer genusKey) |
void |
setIssues(Set<NameUsageIssue> issues) |
void |
setKey(Integer key) |
void |
setKingdom(String kingdom) |
void |
setKingdomKey(Integer kingdomKey) |
void |
setLastCrawled(Date lastCrawled) |
void |
setLastInterpreted(Date lastInterpreted) |
void |
setModified(Date modified) |
void |
setNameKey(Integer nameKey) |
void |
setNameType(NameType nameType) |
void |
setNomenclaturalStatus(Set<NomenclaturalStatus> nomenclaturalStatus) |
void |
setNubKey(Integer nubKey) |
void |
setNumDescendants(int numDescendants) |
void |
setOrder(String order) |
void |
setOrderKey(Integer orderKey) |
void |
setOrigin(Origin origin) |
void |
setParent(String parent) |
void |
setParentKey(Integer parentKey) |
void |
setPhylum(String phylum) |
void |
setPhylumKey(Integer phylumKey) |
void |
setProParteKey(Integer proParteKey)
Sets the pro parte usage key.
|
void |
setPublishedIn(String publishedIn) |
void |
setRank(Rank rank) |
void |
setReferences(URI references) |
void |
setRemarks(String remarks) |
void |
setScientificName(String scientificName) |
void |
setSourceTaxonKey(Integer sourceTaxonKey) |
void |
setSpecies(String species) |
void |
setSpeciesKey(Integer speciesKey) |
void |
setSubgenus(String subgenus) |
void |
setSubgenusKey(Integer subgenusKey) |
void |
setTaxonID(String taxonID) |
void |
setTaxonomicStatus(TaxonomicStatus taxonomicStatus) |
void |
setVernacularName(String vernacularName) |
String |
toString() |
public Integer getNameKey()
public void setNameKey(Integer nameKey)
@Nullable public Integer getSourceTaxonKey()
public void setSourceTaxonKey(Integer sourceTaxonKey)
public String getAccepted()
public void setAccepted(String accepted)
public Integer getAcceptedKey()
public void setAcceptedKey(Integer acceptedKey)
@Nullable public String getAccordingTo()
public void setAccordingTo(String accordingTo)
accordingTo - the accordingTo to set@Nullable public String getAuthorship()
public void setAuthorship(String authorship)
authorship - the authorship to setpublic String getBasionym()
public void setBasionym(String basionym)
@Nullable public Integer getBasionymKey()
public void setBasionymKey(Integer basionymKey)
basionymKey - the basionymKey to set@Nullable public String getCanonicalName()
public void setCanonicalName(String canonicalName)
canonicalName - the canonicalName to set@NotNull public @NotNull UUID getDatasetKey()
public void setDatasetKey(UUID datasetKey)
datasetKey - the datasetKey to set@NotNull public @NotNull Integer getKey()
public NameType getNameType()
public void setNameType(NameType nameType)
nameType - the type of name stringpublic Set<NomenclaturalStatus> getNomenclaturalStatus()
Example: "invalid", "misapplied", "homotypic synonym", "accepted"
public void setNomenclaturalStatus(Set<NomenclaturalStatus> nomenclaturalStatus)
nomenclaturalStatus - the nomenclaturalStatus to set@Nullable public Integer getNubKey()
public int getNumDescendants()
public void setNumDescendants(int numDescendants)
numDescendants - the n umber of descendants to set@NotNull public @NotNull Origin getOrigin()
Origin@Nullable public Integer getParentKey()
public void setParentKey(Integer parentKey)
parentKey - the parentKey to setpublic Integer getProParteKey()
public void setProParteKey(Integer proParteKey)
@Nullable public String getPublishedIn()
public void setPublishedIn(String publishedIn)
publishedIn - the publishedIn to set@Nullable public Rank getRank()
Example: "Kingdom", "Genus"
@NotNull public @NotNull String getScientificName()
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.)"
public void setScientificName(String scientificName)
scientificName - the scientificName to set@Nullable public UUID getConstituentKey()
public void setConstituentKey(UUID constituentKey)
constituentKey - to set@Nullable public String getVernacularName()
Example: Andean Condor", "Condor Andino", "American Eagle", "Gänsegeier".
public void setVernacularName(String vernacularName)
vernacularName - the vernacularName to setpublic String getKingdom()
LinneanClassificationgetKingdom in interface LinneanClassificationpublic void setKingdom(String kingdom)
setKingdom in interface LinneanClassificationkingdom - the kingdom to setpublic String getPhylum()
LinneanClassificationgetPhylum in interface LinneanClassificationpublic void setPhylum(String phylum)
setPhylum in interface LinneanClassificationphylum - the phylum to setpublic String getClazz()
LinneanClassificationgetClazz in interface LinneanClassificationpublic void setClazz(String clazz)
setClazz in interface LinneanClassificationclazz - the clazz to setpublic String getOrder()
LinneanClassificationgetOrder in interface LinneanClassificationpublic void setOrder(String order)
setOrder in interface LinneanClassificationorder - the order to setpublic String getFamily()
LinneanClassificationgetFamily in interface LinneanClassificationpublic void setFamily(String family)
setFamily in interface LinneanClassificationfamily - the family to setpublic String getGenus()
LinneanClassificationgetGenus in interface LinneanClassificationpublic void setGenus(String genus)
setGenus in interface LinneanClassificationgenus - the genus to setpublic String getSubgenus()
LinneanClassificationgetSubgenus in interface LinneanClassificationpublic void setSubgenus(String subgenus)
setSubgenus in interface LinneanClassificationsubgenus - the subgenus canonical namepublic String getSpecies()
LinneanClassificationgetSpecies in interface LinneanClassificationpublic void setSpecies(String species)
setSpecies in interface LinneanClassificationspecies - the species to setpublic Integer getKingdomKey()
LinneanClassificationKeysgetKingdomKey in interface LinneanClassificationKeyspublic void setKingdomKey(Integer kingdomKey)
setKingdomKey in interface LinneanClassificationKeyskingdomKey - the kingdomKey to setpublic Integer getPhylumKey()
LinneanClassificationKeysgetPhylumKey in interface LinneanClassificationKeyspublic void setPhylumKey(Integer phylumKey)
setPhylumKey in interface LinneanClassificationKeysphylumKey - the phylumKey to setpublic Integer getClassKey()
LinneanClassificationKeysgetClassKey in interface LinneanClassificationKeyspublic void setClassKey(Integer classKey)
setClassKey in interface LinneanClassificationKeysclassKey - the classKey to setpublic Integer getOrderKey()
LinneanClassificationKeysgetOrderKey in interface LinneanClassificationKeyspublic void setOrderKey(Integer orderKey)
setOrderKey in interface LinneanClassificationKeysorderKey - the orderKey to setpublic Integer getFamilyKey()
LinneanClassificationKeysgetFamilyKey in interface LinneanClassificationKeyspublic void setFamilyKey(Integer familyKey)
setFamilyKey in interface LinneanClassificationKeysfamilyKey - the familyKey to setpublic Integer getGenusKey()
LinneanClassificationKeysgetGenusKey in interface LinneanClassificationKeyspublic void setGenusKey(Integer genusKey)
setGenusKey in interface LinneanClassificationKeysgenusKey - the genusKey to setpublic Integer getSubgenusKey()
LinneanClassificationKeysgetSubgenusKey in interface LinneanClassificationKeyspublic void setSubgenusKey(Integer subgenusKey)
setSubgenusKey in interface LinneanClassificationKeyssubgenusKey - the subgenus usage keypublic Integer getSpeciesKey()
LinneanClassificationKeysgetSpeciesKey in interface LinneanClassificationKeyspublic void setSpeciesKey(Integer speciesKey)
setSpeciesKey in interface LinneanClassificationKeysspeciesKey - the speciesKey to setpublic String getRemarks()
public void setRemarks(String remarks)
@Nullable public String getCanonicalOrScientificName()
@Nullable public URI getReferences()
Example: https://www.catalogueoflife.org/data/taxon/4R5YN
public void setReferences(URI references)
public String getHigherRank(Rank rank)
LinneanClassificationgetHigherRank in interface LinneanClassificationrank - the higher linnean rank to retrievepublic Integer getHigherRankKey(Rank rank)
LinneanClassificationKeysgetHigherRankKey in interface LinneanClassificationKeysrank - the higher linnean rank to retrieve@NotNull public @NotNull LinkedHashMap<Integer,String> getHigherClassificationMap()
@Nullable public String getTaxonID()
@Nullable public TaxonomicStatus getTaxonomicStatus()
public void setTaxonomicStatus(TaxonomicStatus taxonomicStatus)
taxonomicStatus - the taxonomicStatus to set@Nullable public Date getModified()
public void setModified(Date modified)
@Nullable public Date getDeleted()
public void setDeleted(Date deleted)
@Nullable public Date getLastCrawled()
public void setLastCrawled(Date lastCrawled)
@Nullable public Date getLastInterpreted()
public void setLastInterpreted(Date lastInterpreted)
@NotNull public @NotNull Set<NameUsageIssue> getIssues()
public void setIssues(Set<NameUsageIssue> issues)
public void addIssue(NameUsageIssue issue)
public boolean isNub()
public boolean isProParte()
public boolean isSynonym()
public void setTaxonID(String taxonID)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.