org.biojavax.bio.taxapublic class SimpleTaxon extends AbstractTaxon
A TaxonFactory implementation will probably wish to sub-class this and add package-private accessors for the parent and children fields as well as a pacakge-private constructor.
Annotatable.AnnotationForwarder| Modifier and Type | Field and Description |
|---|---|
protected Set |
children
Deprecated.
|
protected Taxon |
parent
Deprecated.
|
CHANGE_COMMON_NAME, CHANGE_SCIENTIFIC_NAMEANNOTATION| Modifier | Constructor and Description |
|---|---|
protected |
SimpleTaxon()
Deprecated.
|
protected |
SimpleTaxon(String scientificName,
String commonName)
Deprecated.
Create a new instance with no parent, no children and given
scientific and common names.
|
| Modifier and Type | Method and Description |
|---|---|
Set |
getChildren()
Deprecated.
The children of this Taxon.
|
Taxon |
getParent()
Deprecated.
The parent of this Taxon.
|
equals, getAnnotation, getChangeSupport, getCommonName, getScientificName, hashCode, setCommonName, setScientificName, toStringaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected SimpleTaxon()
protected SimpleTaxon(String scientificName, String commonName)
public Taxon getParent()
TaxonThe parent of this Taxon.
Taxa live within a tree data-structure, so every taxon has a single parent except for the root type. This has the null parent.
public Set getChildren()
TaxonThe children of this Taxon.
Taxa live within a tree data-structure, so every taxon has zero or more children. In the case of zero children, the empty set is returned.
? read-only ? dynamicaly updated with taxon object ? copy of data ?
Copyright © 2020 BioJava. All rights reserved.