public interface NCBITaxon extends Comparable, Changeable
Modifier and Type | Field and Description |
---|---|
static String |
ACRONYM
Use this to define acronyms for things.
|
static String |
COMMON
Use this to define common names for things.
|
static String |
EQUIVALENT
Use this to define equivalent names for things.
|
static ChangeType |
GENETICCODE |
static ChangeType |
HIDDEN |
static ChangeType |
LEFTVALUE |
static ChangeType |
MITOGENETICCODE |
static ChangeType |
NAMES |
static ChangeType |
NODERANK |
static ChangeType |
PARENT |
static ChangeType |
RIGHTVALUE |
static String |
SCIENTIFIC
Use this to define scientific names for things.
|
static String |
SYNONYM
Use this to define common names for things.
|
Modifier and Type | Method and Description |
---|---|
void |
addName(String nameClass,
String name)
Adds the name to this taxon in the given name class.
|
boolean |
containsName(String nameClass,
String name)
Tests for the presence of a name in a given class.
|
String |
getDisplayName()
Returns the name of this taxon entry in the form:
scientific (common)
or if there is no common name:
scientific
|
Integer |
getGeneticCode()
Returns the genetic code of this taxon, which may be null if not known.
|
Integer |
getLeftValue()
Gets the left value.
|
Integer |
getMitoGeneticCode()
Returns the mitochondrial genetic code of this taxon, which may be null
if not known.
|
Set |
getNameClasses()
Returns all the name classes available for a taxon.
|
String |
getNameHierarchy()
Returns the taxonomy hierarchy of this taxon entry in the form:
least specific; more specific; ...; most specific.
|
Set |
getNames(String nameClass)
Returns all the names available for a taxon in a given class.
|
int |
getNCBITaxID()
Gets the NCBI taxon ID.
|
String |
getNodeRank()
Gets the node rank of this taxon.
|
Integer |
getParentNCBITaxID()
Returns the parent NCBI taxon ID, if known.
|
Integer |
getRightValue()
Gets the right value.
|
boolean |
isTaxonHidden()
used in getNameHierarchy() to determine whether this taxonomy level is displayed
|
boolean |
removeName(String nameClass,
String name)
Removes the name from the given name class.
|
void |
setGeneticCode(Integer geneticCode)
Sets the genetic code of this taxon, which may be null, which will unset it.
|
void |
setLeftValue(Integer leftValue)
Sets the left value.
|
void |
setMitoGeneticCode(Integer mitoGeneticCode)
Sets the mitochondrial genetic code of this taxon, which may be null,
which will unset it.
|
void |
setNodeRank(String nodeRank)
Sets the node rank of this taxon.
|
void |
setParentNCBITaxID(Integer parent)
Sets the parent NCBI taxon ID.
|
void |
setRightValue(Integer rightValue)
Sets the right value.
|
void |
setTaxonHidden(boolean isTaxonHidden)
determines whether this taxonomy level is displayed in etNameHierarchy()
|
compareTo
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
static final ChangeType NAMES
static final ChangeType PARENT
static final ChangeType NODERANK
static final ChangeType GENETICCODE
static final ChangeType MITOGENETICCODE
static final ChangeType LEFTVALUE
static final ChangeType RIGHTVALUE
static final ChangeType HIDDEN
static final String SCIENTIFIC
static final String COMMON
static final String SYNONYM
static final String ACRONYM
static final String EQUIVALENT
Set getNameClasses()
Set getNames(String nameClass) throws IllegalArgumentException
nameClass
- the name class to retrieve names from.IllegalArgumentException
- if the name is null.void addName(String nameClass, String name) throws IllegalArgumentException, ChangeVetoException
nameClass
- the class to add the name in.name
- the name to add.ChangeVetoException
- in case of objections.IllegalArgumentException
- if the name is null.boolean removeName(String nameClass, String name) throws IllegalArgumentException, ChangeVetoException
nameClass
- the class to remove the name from.name
- the name to remove.ChangeVetoException
- in case of objections.IllegalArgumentException
- if the name is null.boolean containsName(String nameClass, String name) throws IllegalArgumentException
nameClass
- the class to look the name up in.name
- the name to text for existence of.IllegalArgumentException
- if the name is null.Integer getParentNCBITaxID()
void setParentNCBITaxID(Integer parent) throws ChangeVetoException
parent
- New value of property parent.ChangeVetoException
- in case of objections.int getNCBITaxID()
String getNodeRank()
void setNodeRank(String nodeRank) throws ChangeVetoException
nodeRank
- New value of property nodeRank.ChangeVetoException
- in case of objections.Integer getGeneticCode()
void setGeneticCode(Integer geneticCode) throws ChangeVetoException
geneticCode
- New value of property geneticCode.ChangeVetoException
- in case of objections.Integer getMitoGeneticCode()
void setMitoGeneticCode(Integer mitoGeneticCode) throws ChangeVetoException
mitoGeneticCode
- New value of property mitoGeneticCode.ChangeVetoException
- in case of objections.Integer getLeftValue()
void setLeftValue(Integer leftValue) throws ChangeVetoException
leftValue
- New value of property leftValue.ChangeVetoException
- in case of objections.Integer getRightValue()
void setRightValue(Integer rightValue) throws ChangeVetoException
rightValue
- New value of property rightValue.ChangeVetoException
- in case of objections.String getDisplayName()
String getNameHierarchy()
boolean isTaxonHidden()
void setTaxonHidden(boolean isTaxonHidden) throws ChangeVetoException
isTaxonHidden
- - if true it is displayedChangeVetoException
Copyright © 2014 BioJava. All rights reserved.