Package org.forester.phylogeny.data
Class Taxonomy
java.lang.Object
org.forester.phylogeny.data.Taxonomy
- All Implemented Interfaces:
 Comparable<Taxonomy>,MultipleUris,PhylogenyData
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidasText()intcopy()Creates a new PhylogenyData object with identical values as this PhylogenyData.booleangetRank()getUri(int index) getUris()inthashCode()voidinit()booleanisEmpty()booleanisEqual(PhylogenyData data) If this and taxonomy 'data' has an identifier, comparison will be based on that.voidsetAuthority(String authority) voidsetCommonName(String common_name) voidsetIdentifier(Identifier identifier) voidsetLineage(List<String> lineage) voidvoidsetScientificName(String scientific_name) voidsetTaxonomyCode(String taxonomy_code) voidtoNHX()voidtoPhyloXML(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString() 
- 
Constructor Details
- 
Taxonomy
public Taxonomy() 
 - 
 - 
Method Details
- 
asSimpleText
- Specified by:
 asSimpleTextin interfacePhylogenyData
 - 
getUri
- Specified by:
 getUriin interfaceMultipleUris
 - 
addUri
- Specified by:
 addUriin interfaceMultipleUris
 - 
asText
- Specified by:
 asTextin interfacePhylogenyData
 - 
copy
Description copied from interface:PhylogenyDataCreates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
 copyin interfacePhylogenyData- Returns:
 - a ~deep~ copy of this PhylogenyData
 
 - 
equals
 - 
getAuthority
 - 
getCommonName
 - 
getIdentifier
 - 
getRank
 - 
getScientificName
 - 
getSynonyms
 - 
getTaxonomyCode
 - 
getUris
- Specified by:
 getUrisin interfaceMultipleUris
 - 
hashCode
public int hashCode() - 
init
public void init() - 
isEmpty
public boolean isEmpty() - 
isEqual
If this and taxonomy 'data' has an identifier, comparison will be based on that. Otherwise, if this and taxonomy 'data' has a code, comparison will be based on that. Otherwise, if Taxonomy 'data' has a scientific name, comparison will be based on that (case insensitive!). Otherwise, if Taxonomy 'data' has a common name, comparison will be based on that (case insensitive!). (Note. This is important and should not be change without a very good reason.)- Specified by:
 isEqualin interfacePhylogenyData- Returns:
 - in general, true if and only if all fiels are exactly identical, false otherwise
 
 - 
setAuthority
 - 
setCommonName
 - 
setIdentifier
 - 
setRank
- Throws:
 PhyloXmlDataFormatException
 - 
setScientificName
 - 
setTaxonomyCode
- Throws:
 PhyloXmlDataFormatException
 - 
setUris
- Specified by:
 setUrisin interfaceMultipleUris
 - 
toNHX
- Specified by:
 toNHXin interfacePhylogenyData
 - 
toPhyloXML
Description copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
 toPhyloXMLin interfacePhylogenyData- Throws:
 IOException
 - 
toString
 - 
compareTo
- Specified by:
 compareToin interfaceComparable<Taxonomy>
 - 
setLineage
 - 
getLineage
 
 -