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()
LinneanClassification
getKingdom
in interface LinneanClassification
public void setKingdom(String kingdom)
setKingdom
in interface LinneanClassification
kingdom
- the kingdom to setpublic String getPhylum()
LinneanClassification
getPhylum
in interface LinneanClassification
public void setPhylum(String phylum)
setPhylum
in interface LinneanClassification
phylum
- the phylum to setpublic String getClazz()
LinneanClassification
getClazz
in interface LinneanClassification
public void setClazz(String clazz)
setClazz
in interface LinneanClassification
clazz
- the clazz to setpublic String getOrder()
LinneanClassification
getOrder
in interface LinneanClassification
public void setOrder(String order)
setOrder
in interface LinneanClassification
order
- the order to setpublic String getFamily()
LinneanClassification
getFamily
in interface LinneanClassification
public void setFamily(String family)
setFamily
in interface LinneanClassification
family
- the family to setpublic String getGenus()
LinneanClassification
getGenus
in interface LinneanClassification
public void setGenus(String genus)
setGenus
in interface LinneanClassification
genus
- the genus to setpublic String getSubgenus()
LinneanClassification
getSubgenus
in interface LinneanClassification
public void setSubgenus(String subgenus)
setSubgenus
in interface LinneanClassification
subgenus
- the subgenus canonical namepublic String getSpecies()
LinneanClassification
getSpecies
in interface LinneanClassification
public void setSpecies(String species)
setSpecies
in interface LinneanClassification
species
- the species to setpublic Integer getKingdomKey()
LinneanClassificationKeys
getKingdomKey
in interface LinneanClassificationKeys
public void setKingdomKey(Integer kingdomKey)
setKingdomKey
in interface LinneanClassificationKeys
kingdomKey
- the kingdomKey to setpublic Integer getPhylumKey()
LinneanClassificationKeys
getPhylumKey
in interface LinneanClassificationKeys
public void setPhylumKey(Integer phylumKey)
setPhylumKey
in interface LinneanClassificationKeys
phylumKey
- the phylumKey to setpublic Integer getClassKey()
LinneanClassificationKeys
getClassKey
in interface LinneanClassificationKeys
public void setClassKey(Integer classKey)
setClassKey
in interface LinneanClassificationKeys
classKey
- the classKey to setpublic Integer getOrderKey()
LinneanClassificationKeys
getOrderKey
in interface LinneanClassificationKeys
public void setOrderKey(Integer orderKey)
setOrderKey
in interface LinneanClassificationKeys
orderKey
- the orderKey to setpublic Integer getFamilyKey()
LinneanClassificationKeys
getFamilyKey
in interface LinneanClassificationKeys
public void setFamilyKey(Integer familyKey)
setFamilyKey
in interface LinneanClassificationKeys
familyKey
- the familyKey to setpublic Integer getGenusKey()
LinneanClassificationKeys
getGenusKey
in interface LinneanClassificationKeys
public void setGenusKey(Integer genusKey)
setGenusKey
in interface LinneanClassificationKeys
genusKey
- the genusKey to setpublic Integer getSubgenusKey()
LinneanClassificationKeys
getSubgenusKey
in interface LinneanClassificationKeys
public void setSubgenusKey(Integer subgenusKey)
setSubgenusKey
in interface LinneanClassificationKeys
subgenusKey
- the subgenus usage keypublic Integer getSpeciesKey()
LinneanClassificationKeys
getSpeciesKey
in interface LinneanClassificationKeys
public void setSpeciesKey(Integer speciesKey)
setSpeciesKey
in interface LinneanClassificationKeys
speciesKey
- 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)
LinneanClassification
getHigherRank
in interface LinneanClassification
rank
- the higher linnean rank to retrievepublic Integer getHigherRankKey(Rank rank)
LinneanClassificationKeys
getHigherRankKey
in interface LinneanClassificationKeys
rank
- 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.