public abstract class NCBITaxonomyDataSourceImpl extends Object implements NCBITaxonomyDataSource
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
sSnCnPattern |
Constructor and Description |
---|
NCBITaxonomyDataSourceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToNameMap(String inName,
NCBITaxon inTaxon) |
Set<NCBITaxon> |
getByName(String inValue)
Retrieves the NCBITaxon for the specified common name, scientific name,
or GenBank common name.
|
NCBITaxon |
getByTaxonId(int inValue)
Retrieves the taxon for the specified NCBI taxon id.
|
protected abstract void |
initialize() |
protected void |
innerParseNamesFile(BufferedReader inReader) |
protected void |
innerParseNodesFile(BufferedReader inReader) |
protected static final Pattern sSnCnPattern
public NCBITaxonomyDataSourceImpl()
protected abstract void initialize()
public NCBITaxon getByTaxonId(int inValue)
NCBITaxonomyDataSource
getByTaxonId
in interface NCBITaxonomyDataSource
inValue
- the taxon id for the taxon object to retrievepublic Set<NCBITaxon> getByName(String inValue)
NCBITaxonomyDataSource
getByName
in interface NCBITaxonomyDataSource
inValue
- the species name (common or scientific) for the taxon object to returnprotected void innerParseNodesFile(BufferedReader inReader) throws IOException
IOException
protected void innerParseNamesFile(BufferedReader inReader) throws IOException
IOException
protected void addToNameMap(String inName, NCBITaxon inTaxon)
jataylor@hairyfatguy.com