Package org.gbif.api.model.common
Interface LinneanClassification
- All Known Implementing Classes:
NameUsage
,NameUsageContainer
,NameUsageMatch
,NameUsageSearchResult
,NameUsageSuggestResult
,Occurrence
public interface LinneanClassification
A flat taxonomic classification using the major, Linnean ranks with verbatim names.
-
Method Summary
Modifier and TypeMethodDescriptiongetClazz()
Return the class for this usage.Return the family for this usage.getGenus()
Return the genus for this usage.getHigherRank
(Rank rank) Gets a higher taxon property by passing the rank of it.Return the kingdom for this usage.getOrder()
Return the order for this usage.Return the phylum for this usage.Return the species for this usage.Return the canonical subgenus name for this usage.void
void
void
void
setKingdom
(String kingdom) void
void
void
setSpecies
(String species) void
setSubgenus
(String subgenus)
-
Method Details
-
getClazz
Return the class for this usage. If the usage is for something above the "class" taxonomic level, return null.- Returns:
- the class
-
setClazz
- Parameters:
clazz
- the clazz to set
-
getFamily
Return the family for this usage. If the usage is for something above the "family" taxonomic level, return null.- Returns:
- the family
-
setFamily
- Parameters:
family
- the family to set
-
getGenus
Return the genus for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Returns:
- the genus
-
setGenus
- Parameters:
genus
- the genus to set
-
getKingdom
Return the kingdom for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Returns:
- the kingdom
-
setKingdom
- Parameters:
kingdom
- the kingdom to set
-
getOrder
Return the order for this usage. If the usage is for something above the "order" taxonomic level, return null.- Returns:
- the order
-
setOrder
- Parameters:
order
- the order to set
-
getPhylum
Return the phylum for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Returns:
- the phylum
-
setPhylum
- Parameters:
phylum
- the phylum to set
-
getSpecies
Return the species for this usage. If the usage is for something above the "species" taxonomic level, return null.- Returns:
- the species
-
setSpecies
- Parameters:
species
- the species to set
-
getSubgenus
Return the canonical subgenus name for this usage. If the usage is for something above the "subgenus" taxonomic level, return null.- Returns:
- the subgenus name
-
setSubgenus
- Parameters:
subgenus
- the subgenus canonical name
-
getHigherRank
Gets a higher taxon property by passing the rank of it. Only Linnean ranks are supported.- Parameters:
rank
- the higher linnean rank to retrieve- Returns:
- the name of the higher taxon or null if rank doesnt exist
-