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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the class key for this usage.getClazz()Return the class for this usage.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()Taxon key.Return the kingdom for this usage.Return the kingdom key for this usage.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.inthashCode()booleanvoidsetCanonicalName(String canonicalName) voidsetClassKey(Integer classKey) voidvoidvoidsetFamilyKey(Integer familyKey) voidvoidsetGenusKey(Integer genusKey) voidvoidsetKingdom(String kingdom) voidsetKingdomKey(Integer kingdomKey) voidsetNameKey(Integer nameKey) voidvoidvoidsetOrderKey(Integer orderKey) voidvoidsetParentKey(Integer parentKey) voidvoidsetPhylumKey(Integer phylumKey) voidvoidsetScientificName(String scientificName) voidsetSpecies(String species) voidsetSpeciesKey(Integer speciesKey) voidsetStatus(TaxonomicStatus status) voidsetSubgenus(String subgenus) voidsetSubgenusKey(Integer subgenusKey) toString()
-
Constructor Details
-
NameUsageSuggestResult
public NameUsageSuggestResult()
-
-
Method Details
-
getNameKey
- Returns:
- the name key for retrieving a parsed name object
-
setNameKey
-
isSynonym
- Returns:
- true if its a synonym
-
getScientificName
-
setScientificName
-
getStatus
-
setStatus
-
getNubKey
-
setNubKey
-
getKey
Taxon key. -
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 interfaceLinneanClassification- Returns:
- the kingdom
-
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 interfaceLinneanClassification- Returns:
- the phylum
-
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 interfaceLinneanClassification- Returns:
- the class
-
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 interfaceLinneanClassification- Returns:
- the order
-
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 interfaceLinneanClassification- Returns:
- the family
-
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 interfaceLinneanClassification- Returns:
- the genus
-
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 interfaceLinneanClassification- Returns:
- the subgenus name
-
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 interfaceLinneanClassification- Returns:
- the species
-
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 interfaceLinneanClassificationKeys- Returns:
- the kingdomKey
-
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 interfaceLinneanClassificationKeys- Returns:
- the phylumKey
-
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 interfaceLinneanClassificationKeys- Returns:
- the classKey
-
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 interfaceLinneanClassificationKeys- Returns:
- the orderKey
-
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 interfaceLinneanClassificationKeys- Returns:
- the familyKey
-
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 interfaceLinneanClassificationKeys- Returns:
- the genusKey
-
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 interfaceLinneanClassificationKeys- Returns:
- subgenusKey
-
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 interfaceLinneanClassificationKeys- Returns:
- the speciesKey
-
getCanonicalName
-
setCanonicalName
-
setClassKey
- Specified by:
setClassKeyin interfaceLinneanClassificationKeys- Parameters:
classKey- the classKey to set
-
setClazz
- Specified by:
setClazzin interfaceLinneanClassification- Parameters:
clazz- the clazz to set
-
setFamily
- Specified by:
setFamilyin interfaceLinneanClassification- Parameters:
family- the family to set
-
setFamilyKey
- Specified by:
setFamilyKeyin interfaceLinneanClassificationKeys- Parameters:
familyKey- the familyKey to set
-
setGenus
- Specified by:
setGenusin interfaceLinneanClassification- Parameters:
genus- the genus to set
-
setGenusKey
- Specified by:
setGenusKeyin interfaceLinneanClassificationKeys- Parameters:
genusKey- the genusKey to set
-
setKey
-
setKingdom
- Specified by:
setKingdomin interfaceLinneanClassification- Parameters:
kingdom- the kingdom to set
-
setKingdomKey
- Specified by:
setKingdomKeyin interfaceLinneanClassificationKeys- Parameters:
kingdomKey- the kingdomKey to set
-
setOrder
- Specified by:
setOrderin interfaceLinneanClassification- Parameters:
order- the order to set
-
setOrderKey
- Specified by:
setOrderKeyin interfaceLinneanClassificationKeys- Parameters:
orderKey- the orderKey to set
-
setPhylum
- Specified by:
setPhylumin interfaceLinneanClassification- Parameters:
phylum- the phylum to set
-
setPhylumKey
- Specified by:
setPhylumKeyin interfaceLinneanClassificationKeys- Parameters:
phylumKey- the phylumKey to set
-
setSpecies
- Specified by:
setSpeciesin interfaceLinneanClassification- Parameters:
species- the species to set
-
setSpeciesKey
- Specified by:
setSpeciesKeyin interfaceLinneanClassificationKeys- Parameters:
speciesKey- the speciesKey to set
-
setSubgenus
- Specified by:
setSubgenusin interfaceLinneanClassification- Parameters:
subgenus- the subgenus canonical name
-
setSubgenusKey
- Specified by:
setSubgenusKeyin interfaceLinneanClassificationKeys- Parameters:
subgenusKey- the subgenus usage key
-
getParent
-
getParentKey
-
setParent
-
setParentKey
-
getRank
-
setRank
-
getHigherRank
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
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
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
-
equals
-
hashCode
-
toString
-