Package org.gbif.api.model.common
Interface LinneanClassificationKeys
- All Known Implementing Classes:
NameUsage
,NameUsageContainer
,NameUsageMatch
,NameUsageSearchResult
,NameUsageSuggestResult
,Occurrence
public interface LinneanClassificationKeys
A flat taxonomic classification using the major, Linnean ranks with verbatim names and integer based keys.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the class key for this usage.Return the family key for this usage.Return the genus key for this usage.getHigherRankKey
(Rank rank) Gets a higher taxon key by passing the rank of it.Return the kingdom key for this usage.Return the order key for this usage.Return the phylum key for this usage.Return the species key for this usage.Return the subgenus key for this usage.void
setClassKey
(Integer classKey) void
setFamilyKey
(Integer familyKey) void
setGenusKey
(Integer genusKey) void
setKingdomKey
(Integer kingdomKey) void
setOrderKey
(Integer orderKey) void
setPhylumKey
(Integer phylumKey) void
setSpeciesKey
(Integer speciesKey) void
setSubgenusKey
(Integer subgenusKey)
-
Method Details
-
getClassKey
Return the class key for this usage. If the usage is for something above the "class" taxonomic level, return null.- Returns:
- the classKey
-
setClassKey
- Parameters:
classKey
- the classKey to set
-
getFamilyKey
Return the family key for this usage. If the usage is for something above the "family" taxonomic level, return null.- Returns:
- the familyKey
-
setFamilyKey
- Parameters:
familyKey
- the familyKey to set
-
getGenusKey
Return the genus key for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Returns:
- the genusKey
-
setGenusKey
- Parameters:
genusKey
- the genusKey to set
-
getKingdomKey
Return the kingdom key for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Returns:
- the kingdomKey
-
setKingdomKey
- Parameters:
kingdomKey
- the kingdomKey to set
-
getOrderKey
Return the order key for this usage. If the usage is for something above the "order" taxonomic level, return null.- Returns:
- the orderKey
-
setOrderKey
- Parameters:
orderKey
- the orderKey to set
-
getPhylumKey
Return the phylum key for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Returns:
- the phylumKey
-
setPhylumKey
- Parameters:
phylumKey
- the phylumKey to set
-
getSpeciesKey
Return the species key for this usage. If the usage is for something above the "species" taxonomic level, return null.- Returns:
- the speciesKey
-
setSpeciesKey
- Parameters:
speciesKey
- the speciesKey to set
-
getSubgenusKey
Return the subgenus key for this usage. If the usage is for something above the "subgenus" taxonomic level, return null.- Returns:
- subgenusKey
-
setSubgenusKey
- Parameters:
subgenusKey
- the subgenus usage key
-
getHigherRankKey
Gets a higher taxon key by passing the rank of it. Only Linnean ranks are supported.- Parameters:
rank
- the higher linnean rank to retrieve- Returns:
- the key of the higher taxon or null if rank doesnt exist
-