org.jscience.biology.taxonomy
Interface TaxonParser

All Known Implementing Classes:
EbiFormat

public interface TaxonParser

Encapsulate the mapping between Taxon and stringified representations of taxa.


Method Summary
 Taxon parse(TaxonFactory taxonFactory, java.lang.String taxonString)
          Convert a stringified Taxon into a Taxon instance.
 java.lang.String serialize(Taxon taxon)
          Convert a Taxon into a stringified representation.
 

Method Detail

parse

Taxon parse(TaxonFactory taxonFactory,
            java.lang.String taxonString)
            throws CircularReferenceException
Convert a stringified Taxon into a Taxon instance.

Parameters:
taxonFactory - the TaxonFactory used to instantiate taxa instances
taxonString - the String to parse
Returns:
a Taxon instance created by the TaxonFactory from the taxonString
Throws:
CircularReferenceException - DOCUMENT ME!

serialize

java.lang.String serialize(Taxon taxon)
Convert a Taxon into a stringified representation.

Parameters:
taxon - the Taxon to serialize
Returns:
the stringified version of Taxon