org.biojavax.bio.taxa
public 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_NAME
ANNOTATION
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, toString
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
protected SimpleTaxon()
protected SimpleTaxon(String scientificName, String commonName)
public Taxon getParent()
Taxon
The 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()
Taxon
The 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 © 2014 BioJava. All rights reserved.