public class Organism extends Object implements Nameable, Identifiable<NCBITaxonomyIdentifier>
NCBITaxonomyIdentifier, names, and
linage.| Constructor and Description |
|---|
Organism(String scientificName)
Creates a new organism with the given scientific name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommonName()
Returns a common name (such as "wild boar").
|
NCBITaxonomyIdentifier |
getIdentifier()
Returns the
Identifier. |
List<Taxon> |
getLineage()
Returns the linage as a list of
Taxons. |
String |
getName()
Returns the name, by which the object can be referenced.
|
String |
getScientificName()
Returns the scientific name (such as "Sus scrofa").
|
void |
setCommonName(String commonName)
Sets a common name (such as "wild boar").
|
void |
setIdentifier(NCBITaxonomyIdentifier identifier)
Sets the
NCBITaxonomyIdentifier. |
void |
setLineage(List<Taxon> lineage)
Sets the linage for this organism.
|
void |
setScientificName(String scientificName)
Sets the scientific name (such as "Sus scrofa").
|
public Organism(String scientificName)
scientificName - A scientific name.public String getScientificName()
public void setScientificName(String scientificName)
scientificName - The scientific name.public String getCommonName()
public void setCommonName(String commonName)
commonName - The common name.public String getName()
Nameablepublic NCBITaxonomyIdentifier getIdentifier()
IdentifiableIdentifier.getIdentifier in interface Identifiable<NCBITaxonomyIdentifier>Identifier.public void setIdentifier(NCBITaxonomyIdentifier identifier)
NCBITaxonomyIdentifier.identifier - The identifier.public List<Taxon> getLineage()
Taxons.Copyright © 2017. All rights reserved.