public static final class TaxonomyDocument.Taxon extends Object
| Constructor and Description |
|---|
TaxonomyDocument.Taxon(String scientificName,
TaxonomyDocument.TaxonomicLevel taxonomicLevel,
TaxonomyDocument.Taxon parent,
List<String> otherNames)
Construct a new Taxon.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<String> |
getOtherNames()
Get any other names that this taxon is known by.
|
TaxonomyDocument.Taxon |
getParent()
Get the parent taxon (if any).
|
String |
getScientificName()
Get the scientific name of this taxon (e.g.
|
TaxonomyDocument.TaxonomicLevel |
getTaxonomicLevel()
Get the taxonomic level of this taxon (e.g.
|
int |
hashCode() |
String |
toString()
Convert this Taxon and all of its ancestors to a String (i.e.
|
public TaxonomyDocument.Taxon(String scientificName, TaxonomyDocument.TaxonomicLevel taxonomicLevel, TaxonomyDocument.Taxon parent, List<String> otherNames)
scientificName - the scientific name of this taxon (e.g. Homo sapiens or Mammalia)taxonomicLevel - the taxonomic level of this taxon (e.g. Species or Class); must not be nullparent - the parent taxon or null if this is a top-level Taxon.
For example, the parent of "Homo sapiens (Species)" is "Homo (Genus)"otherNames - any other names that this taxon is known by. May be null or empty to indicate no other names. For example. "Homo sapiens" is also known as "Human" and "Man".public TaxonomyDocument.TaxonomicLevel getTaxonomicLevel()
public String getScientificName()
public TaxonomyDocument.Taxon getParent()
public List<String> getOtherNames()
public String toString()