Class NameUsageSuggestResult
- java.lang.Object
- 
- org.gbif.api.model.checklistbank.search.NameUsageSuggestResult
 
- 
- All Implemented Interfaces:
- LinneanClassification,- LinneanClassificationKeys
 
 public class NameUsageSuggestResult extends Object implements LinneanClassification, LinneanClassificationKeys Class used for returning results of a suggest operation. This class contains additional attributes that are required for displaying/providing textual information.
- 
- 
Constructor SummaryConstructors Constructor Description NameUsageSuggestResult()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCanonicalName()IntegergetClassKey()Return the class key for this usage.StringgetClazz()Return the class for this usage.StringgetFamily()Return the family for this usage.IntegergetFamilyKey()Return the family key for this usage.StringgetGenus()Return the genus for this usage.IntegergetGenusKey()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.StringgetHigherRank(Rank rank)Gets a higher taxon property by passing the rank of it.IntegergetHigherRankKey(Rank rank)Gets a higher taxon key by passing the rank of it.IntegergetKey()Taxon key.StringgetKingdom()Return the kingdom for this usage.IntegergetKingdomKey()Return the kingdom key for this usage.IntegergetNameKey()IntegergetNubKey()StringgetOrder()Return the order for this usage.IntegergetOrderKey()Return the order key for this usage.StringgetParent()IntegergetParentKey()StringgetPhylum()Return the phylum for this usage.IntegergetPhylumKey()Return the phylum key for this usage.RankgetRank()StringgetScientificName()StringgetSpecies()Return the species for this usage.IntegergetSpeciesKey()Return the species key for this usage.TaxonomicStatusgetStatus()StringgetSubgenus()Return the canonical subgenus name for this usage.IntegergetSubgenusKey()Return the subgenus key for this usage.inthashCode()booleanisSynonym()voidsetCanonicalName(String canonicalName)voidsetClassKey(Integer classKey)voidsetClazz(String clazz)voidsetFamily(String family)voidsetFamilyKey(Integer familyKey)voidsetGenus(String genus)voidsetGenusKey(Integer genusKey)voidsetKey(Integer key)voidsetKingdom(String kingdom)voidsetKingdomKey(Integer kingdomKey)voidsetNameKey(Integer nameKey)voidsetNubKey(Integer nubKey)voidsetOrder(String order)voidsetOrderKey(Integer orderKey)voidsetParent(String parent)voidsetParentKey(Integer parentKey)voidsetPhylum(String phylum)voidsetPhylumKey(Integer phylumKey)voidsetRank(Rank rank)voidsetScientificName(String scientificName)voidsetSpecies(String species)voidsetSpeciesKey(Integer speciesKey)voidsetStatus(TaxonomicStatus status)voidsetSubgenus(String subgenus)voidsetSubgenusKey(Integer subgenusKey)StringtoString()
 
- 
- 
- 
Constructor Detail- 
NameUsageSuggestResultpublic NameUsageSuggestResult() 
 
- 
 - 
Method Detail- 
getNameKeypublic Integer getNameKey() - Returns:
- the name key for retrieving a parsed name object
 
 - 
setNameKeypublic void setNameKey(Integer nameKey) 
 - 
isSynonympublic boolean isSynonym() - Returns:
- true if its a synonym
 
 - 
getScientificNamepublic String getScientificName() 
 - 
setScientificNamepublic void setScientificName(String scientificName) 
 - 
getStatuspublic TaxonomicStatus getStatus() 
 - 
setStatuspublic void setStatus(TaxonomicStatus status) 
 - 
getKingdompublic String getKingdom() 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 interface- LinneanClassification
- Returns:
- the kingdom
 
 - 
getPhylumpublic String getPhylum() 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 interface- LinneanClassification
- Returns:
- the phylum
 
 - 
getClazzpublic String getClazz() 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 interface- LinneanClassification
- Returns:
- the class
 
 - 
getOrderpublic String getOrder() 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 interface- LinneanClassification
- Returns:
- the order
 
 - 
getFamilypublic String getFamily() 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 interface- LinneanClassification
- Returns:
- the family
 
 - 
getGenuspublic String getGenus() 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 interface- LinneanClassification
- Returns:
- the genus
 
 - 
getSubgenuspublic String getSubgenus() 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 interface- LinneanClassification
- Returns:
- the subgenus name
 
 - 
getSpeciespublic String getSpecies() 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 interface- LinneanClassification
- Returns:
- the species
 
 - 
getKingdomKeypublic Integer getKingdomKey() 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 interface- LinneanClassificationKeys
- Returns:
- the kingdomKey
 
 - 
getPhylumKeypublic Integer getPhylumKey() 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 interface- LinneanClassificationKeys
- Returns:
- the phylumKey
 
 - 
getClassKeypublic Integer getClassKey() 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 interface- LinneanClassificationKeys
- Returns:
- the classKey
 
 - 
getOrderKeypublic Integer getOrderKey() 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 interface- LinneanClassificationKeys
- Returns:
- the orderKey
 
 - 
getFamilyKeypublic Integer getFamilyKey() 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 interface- LinneanClassificationKeys
- Returns:
- the familyKey
 
 - 
getGenusKeypublic Integer getGenusKey() 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 interface- LinneanClassificationKeys
- Returns:
- the genusKey
 
 - 
getSubgenusKeypublic Integer getSubgenusKey() 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 interface- LinneanClassificationKeys
- Returns:
- subgenusKey
 
 - 
getSpeciesKeypublic Integer getSpeciesKey() 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 interface- LinneanClassificationKeys
- Returns:
- the speciesKey
 
 - 
getCanonicalNamepublic String getCanonicalName() 
 - 
setCanonicalNamepublic void setCanonicalName(String canonicalName) 
 - 
setClassKeypublic void setClassKey(Integer classKey) - Specified by:
- setClassKeyin interface- LinneanClassificationKeys
- Parameters:
- classKey- the classKey to set
 
 - 
setClazzpublic void setClazz(String clazz) - Specified by:
- setClazzin interface- LinneanClassification
- Parameters:
- clazz- the clazz to set
 
 - 
setFamilypublic void setFamily(String family) - Specified by:
- setFamilyin interface- LinneanClassification
- Parameters:
- family- the family to set
 
 - 
setFamilyKeypublic void setFamilyKey(Integer familyKey) - Specified by:
- setFamilyKeyin interface- LinneanClassificationKeys
- Parameters:
- familyKey- the familyKey to set
 
 - 
setGenuspublic void setGenus(String genus) - Specified by:
- setGenusin interface- LinneanClassification
- Parameters:
- genus- the genus to set
 
 - 
setGenusKeypublic void setGenusKey(Integer genusKey) - Specified by:
- setGenusKeyin interface- LinneanClassificationKeys
- Parameters:
- genusKey- the genusKey to set
 
 - 
setKingdompublic void setKingdom(String kingdom) - Specified by:
- setKingdomin interface- LinneanClassification
- Parameters:
- kingdom- the kingdom to set
 
 - 
setKingdomKeypublic void setKingdomKey(Integer kingdomKey) - Specified by:
- setKingdomKeyin interface- LinneanClassificationKeys
- Parameters:
- kingdomKey- the kingdomKey to set
 
 - 
setOrderpublic void setOrder(String order) - Specified by:
- setOrderin interface- LinneanClassification
- Parameters:
- order- the order to set
 
 - 
setOrderKeypublic void setOrderKey(Integer orderKey) - Specified by:
- setOrderKeyin interface- LinneanClassificationKeys
- Parameters:
- orderKey- the orderKey to set
 
 - 
setPhylumpublic void setPhylum(String phylum) - Specified by:
- setPhylumin interface- LinneanClassification
- Parameters:
- phylum- the phylum to set
 
 - 
setPhylumKeypublic void setPhylumKey(Integer phylumKey) - Specified by:
- setPhylumKeyin interface- LinneanClassificationKeys
- Parameters:
- phylumKey- the phylumKey to set
 
 - 
setSpeciespublic void setSpecies(String species) - Specified by:
- setSpeciesin interface- LinneanClassification
- Parameters:
- species- the species to set
 
 - 
setSpeciesKeypublic void setSpeciesKey(Integer speciesKey) - Specified by:
- setSpeciesKeyin interface- LinneanClassificationKeys
- Parameters:
- speciesKey- the speciesKey to set
 
 - 
setSubgenuspublic void setSubgenus(String subgenus) - Specified by:
- setSubgenusin interface- LinneanClassification
- Parameters:
- subgenus- the subgenus canonical name
 
 - 
setSubgenusKeypublic void setSubgenusKey(Integer subgenusKey) - Specified by:
- setSubgenusKeyin interface- LinneanClassificationKeys
- Parameters:
- subgenusKey- the subgenus usage key
 
 - 
getParentKeypublic Integer getParentKey() 
 - 
setParentKeypublic void setParentKey(Integer parentKey) 
 - 
getHigherRankpublic String getHigherRank(Rank rank) Description copied from interface:LinneanClassificationGets a higher taxon property by passing the rank of it. Only Linnean ranks are supported.- Specified by:
- getHigherRankin interface- LinneanClassification
- Parameters:
- rank- the higher linnean rank to retrieve
- Returns:
- the name of the higher taxon or null if rank doesnt exist
 
 - 
getHigherRankKeypublic Integer getHigherRankKey(Rank rank) Description copied from interface:LinneanClassificationKeysGets a higher taxon key by passing the rank of it. Only Linnean ranks are supported.- Specified by:
- getHigherRankKeyin interface- LinneanClassificationKeys
- Parameters:
- rank- the higher linnean rank to retrieve
- Returns:
- the key of the higher taxon or null if rank doesnt exist
 
 - 
getHigherClassificationMap@NotNull public @NotNull LinkedHashMap<Integer,String> 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
 
 
- 
 
-