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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetClazz()Return the class for this usage.StringgetFamily()Return the family for this usage.StringgetGenus()Return the genus for this usage.StringgetHigherRank(Rank rank)Gets a higher taxon property by passing the rank of it.StringgetKingdom()Return the kingdom for this usage.StringgetOrder()Return the order for this usage.StringgetPhylum()Return the phylum for this usage.StringgetSpecies()Return the species for this usage.StringgetSubgenus()Return the canonical subgenus name for this usage.voidsetClazz(String clazz)voidsetFamily(String family)voidsetGenus(String genus)voidsetKingdom(String kingdom)voidsetOrder(String order)voidsetPhylum(String phylum)voidsetSpecies(String species)voidsetSubgenus(String subgenus) 
 - 
 
- 
- 
Method Detail
- 
getClazz
@Nullable String getClazz()
Return the class for this usage. If the usage is for something above the "class" taxonomic level, return null.- Returns:
 - the class
 
 
- 
getFamily
@Nullable String getFamily()
Return the family for this usage. If the usage is for something above the "family" taxonomic level, return null.- Returns:
 - the family
 
 
- 
getGenus
@Nullable String getGenus()
Return the genus for this usage. If the usage is for something above the "genus" taxonomic level, return null.- Returns:
 - the genus
 
 
- 
getKingdom
@Nullable String getKingdom()
Return the kingdom for this usage. If the usage is for something above the "kingdom" taxonomic level, return null.- Returns:
 - the kingdom
 
 
- 
setKingdom
void setKingdom(String kingdom)
- Parameters:
 kingdom- the kingdom to set
 
- 
getOrder
@Nullable String getOrder()
Return the order for this usage. If the usage is for something above the "order" taxonomic level, return null.- Returns:
 - the order
 
 
- 
getPhylum
@Nullable String getPhylum()
Return the phylum for this usage. If the usage is for something above the "phylum" taxonomic level, return null.- Returns:
 - the phylum
 
 
- 
getSpecies
@Nullable String getSpecies()
Return the species for this usage. If the usage is for something above the "species" taxonomic level, return null.- Returns:
 - the species
 
 
- 
setSpecies
void setSpecies(String species)
- Parameters:
 species- the species to set
 
- 
getSubgenus
@Nullable String 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
void setSubgenus(String subgenus)
- Parameters:
 subgenus- the subgenus canonical name
 
- 
getHigherRank
@Nullable String getHigherRank(Rank rank)
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
 
 
 - 
 
 -