public final class Taxon extends java.lang.Object implements Attributable, java.lang.Comparable
Attributable.Utils| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(Taxon t) |
static java.util.Set<Taxon> |
getAllTaxa() |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributeMap()
Gets the entire attribute map.
|
java.util.Set<java.lang.String> |
getAttributeNames() |
java.lang.String |
getName()
get the name of the taxon
|
static Taxon |
getTaxon(java.lang.String name)
A static method that returns a Taxon object with the given name.
|
TaxonomicLevel |
getTaxonomicLevel()
get the taxonomic level of the taxon
|
int |
hashCode() |
void |
removeAttribute(java.lang.String name) |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an named attribute for this object.
|
java.lang.String |
toString() |
public java.lang.String getName()
public TaxonomicLevel getTaxonomicLevel()
public void setAttribute(java.lang.String name,
java.lang.Object value)
AttributablesetAttribute in interface Attributablename - the name of the attribute.value - the new value of the attribute.public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface Attributablename - the name of the attribute of interest, or null if the attribute doesn't exist.public void removeAttribute(java.lang.String name)
removeAttribute in interface Attributablename - name of attribute to removepublic java.util.Set<java.lang.String> getAttributeNames()
getAttributeNames in interface Attributablepublic java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
AttributablegetAttributeMap in interface Attributablepublic static java.util.Set<Taxon> getAllTaxa()
public static Taxon getTaxon(java.lang.String name)
name - public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(Taxon t)
public int hashCode()
hashCode in class java.lang.Objecthttp://code.google.com/p/jebl2/