Class NameUsageSearchResult
java.lang.Object
org.gbif.api.model.checklistbank.search.NameUsageSearchResult
- All Implemented Interfaces:
LinneanClassification
,LinneanClassificationKeys
public class NameUsageSearchResult
extends Object
implements LinneanClassification, LinneanClassificationKeys
Class used for returning results of a full text search operation.
This class contains additional attributes that are required for displaying/providing textual information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the class key for this usage.getClazz()
Return the class for this usage.@NotNull List<Description>
Return the family for this usage.Return the family key for this usage.getGenus()
Return the genus for this usage.Return the genus key for this usage.@NotNull LinkedHashMap<Integer,
String> An ordered map with entries for all higher Linnean ranks down to the actual direct parent of this usage.getHigherRank
(Rank rank) Gets a higher taxon property by passing the rank of it.getHigherRankKey
(Rank rank) Gets a higher taxon key by passing the rank of it.getKey()
Return the kingdom for this usage.Return the kingdom key for this usage.int
long
getOrder()
Return the order for this usage.Return the order key for this usage.Return the phylum for this usage.Return the phylum key for this usage.getRank()
Return the species for this usage.Return the species key for this usage.Return the canonical subgenus name for this usage.Return the subgenus key for this usage.@NotNull List<VernacularName>
int
hashCode()
boolean
Convenience method using the taxonomicStatus field.void
setAccepted
(String accepted) void
setAcceptedKey
(Integer acceptedKey) void
setAccordingTo
(String accordingTo) void
setAuthorship
(String authorship) void
setBasionym
(String basionym) void
setBasionymKey
(Integer basionymKey) void
setCanonicalName
(String canonicalName) void
setClassKey
(Integer classKey) void
void
setConstituentKey
(UUID constituentKey) void
setDatasetKey
(UUID datasetKey) void
setDescriptions
(List<Description> descriptions) void
setExtinct
(Boolean extinct) void
void
setFamilyKey
(Integer familyKey) void
void
setGenusKey
(Integer genusKey) void
setHabitats
(List<Habitat> habitats) void
void
setKingdom
(String kingdom) void
setKingdomKey
(Integer kingdomKey) void
setNameKey
(Integer nameKey) void
setNameType
(NameType nameType) void
setNomenclaturalStatus
(List<NomenclaturalStatus> nomenclaturalStatus) void
void
setNumDescendants
(int numDescendants) void
setNumOccurrences
(long numOccurrences) void
void
setOrderKey
(Integer orderKey) void
void
void
setParentKey
(Integer parentKey) void
void
setPhylumKey
(Integer phylumKey) void
setPublishedIn
(String publishedIn) void
void
setScientificName
(String scientificName) 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
setThreatStatuses
(List<ThreatStatus> threatStatuses) void
setVernacularNames
(List<VernacularName> vernacularNames) toString()
-
Constructor Details
-
NameUsageSearchResult
public NameUsageSearchResult()
-
-
Method Details
-
getNameKey
- Returns:
- the name key for retrieving a parsed name object
-
setNameKey
-
getAccepted
-
setAccepted
-
getAcceptedKey
-
setAcceptedKey
-
getAccordingTo
-
setAccordingTo
-
getAuthorship
-
setAuthorship
-
getBasionym
-
setBasionym
-
getBasionymKey
-
setBasionymKey
-
getCanonicalName
-
setCanonicalName
-
getDatasetKey
-
setDatasetKey
-
getConstituentKey
-
setConstituentKey
-
getDescriptions
- Returns:
- the list of Description
-
setDescriptions
- Parameters:
descriptions
- the list of Description
-
getKey
-
setKey
-
getNameType
-
setNameType
-
getNubKey
-
setNubKey
-
getNumDescendants
-
setNumDescendants
-
getNumOccurrences
-
setNumOccurrences
-
getOrigin
-
setOrigin
-
getParent
-
setParent
-
getParentKey
-
setParentKey
-
getPublishedIn
-
setPublishedIn
-
getRank
-
setRank
-
getScientificName
-
setScientificName
-
getTaxonID
-
setTaxonID
-
getTaxonomicStatus
-
setTaxonomicStatus
-
getThreatStatuses
-
setThreatStatuses
-
getNomenclaturalStatus
-
setNomenclaturalStatus
-
getVernacularNames
- Returns:
- the list of VernacularName
-
setVernacularNames
- Parameters:
vernacularNames
- the VernacularName list to set
-
isExtinct
-
setExtinct
-
getHabitats
-
setHabitats
-
getKingdom
Description copied from interface:LinneanClassification
Return the kingdom for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Specified by:
getKingdom
in interfaceLinneanClassification
- Returns:
- the kingdom
-
setKingdom
- Specified by:
setKingdom
in interfaceLinneanClassification
- Parameters:
kingdom
- the kingdom to set
-
getPhylum
Description copied from interface:LinneanClassification
Return the phylum for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Specified by:
getPhylum
in interfaceLinneanClassification
- Returns:
- the phylum
-
setPhylum
- Specified by:
setPhylum
in interfaceLinneanClassification
- Parameters:
phylum
- the phylum to set
-
getClazz
Description copied from interface:LinneanClassification
Return the class for this usage. If the usage is for something above the "class" taxonomic level, return null.- Specified by:
getClazz
in interfaceLinneanClassification
- Returns:
- the class
-
setClazz
- Specified by:
setClazz
in interfaceLinneanClassification
- Parameters:
clazz
- the clazz to set
-
getOrder
Description copied from interface:LinneanClassification
Return the order for this usage. If the usage is for something above the "order" taxonomic level, return null.- Specified by:
getOrder
in interfaceLinneanClassification
- Returns:
- the order
-
setOrder
- Specified by:
setOrder
in interfaceLinneanClassification
- Parameters:
order
- the order to set
-
getFamily
Description copied from interface:LinneanClassification
Return the family for this usage. If the usage is for something above the "family" taxonomic level, return null.- Specified by:
getFamily
in interfaceLinneanClassification
- Returns:
- the family
-
setFamily
- Specified by:
setFamily
in interfaceLinneanClassification
- Parameters:
family
- the family to set
-
getGenus
Description copied from interface:LinneanClassification
Return the genus for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Specified by:
getGenus
in interfaceLinneanClassification
- Returns:
- the genus
-
setGenus
- Specified by:
setGenus
in interfaceLinneanClassification
- Parameters:
genus
- the genus to set
-
getSubgenus
Description copied from interface:LinneanClassification
Return the canonical subgenus name for this usage. If the usage is for something above the "subgenus" taxonomic level, return null.- Specified by:
getSubgenus
in interfaceLinneanClassification
- Returns:
- the subgenus name
-
setSubgenus
- Specified by:
setSubgenus
in interfaceLinneanClassification
- Parameters:
subgenus
- the subgenus canonical name
-
getSpecies
Description copied from interface:LinneanClassification
Return the species for this usage. If the usage is for something above the "species" taxonomic level, return null.- Specified by:
getSpecies
in interfaceLinneanClassification
- Returns:
- the species
-
setSpecies
- Specified by:
setSpecies
in interfaceLinneanClassification
- Parameters:
species
- the species to set
-
getKingdomKey
Description copied from interface:LinneanClassificationKeys
Return the kingdom key for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Specified by:
getKingdomKey
in interfaceLinneanClassificationKeys
- Returns:
- the kingdomKey
-
setKingdomKey
- Specified by:
setKingdomKey
in interfaceLinneanClassificationKeys
- Parameters:
kingdomKey
- the kingdomKey to set
-
getPhylumKey
Description copied from interface:LinneanClassificationKeys
Return the phylum key for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Specified by:
getPhylumKey
in interfaceLinneanClassificationKeys
- Returns:
- the phylumKey
-
setPhylumKey
- Specified by:
setPhylumKey
in interfaceLinneanClassificationKeys
- Parameters:
phylumKey
- the phylumKey to set
-
getClassKey
Description copied from interface:LinneanClassificationKeys
Return the class key for this usage. If the usage is for something above the "class" taxonomic level, return null.- Specified by:
getClassKey
in interfaceLinneanClassificationKeys
- Returns:
- the classKey
-
setClassKey
- Specified by:
setClassKey
in interfaceLinneanClassificationKeys
- Parameters:
classKey
- the classKey to set
-
getOrderKey
Description copied from interface:LinneanClassificationKeys
Return the order key for this usage. If the usage is for something above the "order" taxonomic level, return null.- Specified by:
getOrderKey
in interfaceLinneanClassificationKeys
- Returns:
- the orderKey
-
setOrderKey
- Specified by:
setOrderKey
in interfaceLinneanClassificationKeys
- Parameters:
orderKey
- the orderKey to set
-
getFamilyKey
Description copied from interface:LinneanClassificationKeys
Return the family key for this usage. If the usage is for something above the "family" taxonomic level, return null.- Specified by:
getFamilyKey
in interfaceLinneanClassificationKeys
- Returns:
- the familyKey
-
setFamilyKey
- Specified by:
setFamilyKey
in interfaceLinneanClassificationKeys
- Parameters:
familyKey
- the familyKey to set
-
getGenusKey
Description copied from interface:LinneanClassificationKeys
Return the genus key for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Specified by:
getGenusKey
in interfaceLinneanClassificationKeys
- Returns:
- the genusKey
-
setGenusKey
- Specified by:
setGenusKey
in interfaceLinneanClassificationKeys
- Parameters:
genusKey
- the genusKey to set
-
getSubgenusKey
Description copied from interface:LinneanClassificationKeys
Return the subgenus key for this usage. If the usage is for something above the "subgenus" taxonomic level, return null.- Specified by:
getSubgenusKey
in interfaceLinneanClassificationKeys
- Returns:
- subgenusKey
-
setSubgenusKey
- Specified by:
setSubgenusKey
in interfaceLinneanClassificationKeys
- Parameters:
subgenusKey
- the subgenus usage key
-
getSpeciesKey
Description copied from interface:LinneanClassificationKeys
Return the species key for this usage. If the usage is for something above the "species" taxonomic level, return null.- Specified by:
getSpeciesKey
in interfaceLinneanClassificationKeys
- Returns:
- the speciesKey
-
setSpeciesKey
- Specified by:
setSpeciesKey
in interfaceLinneanClassificationKeys
- Parameters:
speciesKey
- the speciesKey to set
-
getHigherRank
Description copied from interface:LinneanClassification
Gets a higher taxon property by passing the rank of it. Only Linnean ranks are supported.- Specified by:
getHigherRank
in interfaceLinneanClassification
- Parameters:
rank
- the higher linnean rank to retrieve- Returns:
- the name of the higher taxon or null if rank doesnt exist
-
getHigherRankKey
Description copied from interface:LinneanClassificationKeys
Gets a higher taxon key by passing the rank of it. Only Linnean ranks are supported.- Specified by:
getHigherRankKey
in interfaceLinneanClassificationKeys
- Parameters:
rank
- the higher linnean rank to retrieve- Returns:
- the key of the higher taxon or null if rank doesnt exist
-
getHigherClassificationMap
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
-
isSynonym
Convenience method using the taxonomicStatus field.- Returns:
- true if its a synonym
-
equals
-
hashCode
-
toString
-