Interface OrganismFetcher
-
- All Known Implementing Classes:
CachedUniprotTaxonomyFetcher,FailingOrganismFetcher,MockOrganismFetcher,UniprotTaxonomyFetcher
public interface OrganismFetcherInterface for fetching an organism from an external service.- Since:
- 22/05/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OrganismfetchByTaxID(int taxID)Finds the complete organism record matching the provided TaxID number.Collection<Organism>fetchByTaxIDs(Collection<Integer> taxIDs)Finds the complete organism records matching the provided TaxID numbers.
-
-
-
Method Detail
-
fetchByTaxID
Organism fetchByTaxID(int taxID) throws BridgeFailedException
Finds the complete organism record matching the provided TaxID number.- Parameters:
taxID- The taxID to search for- Returns:
- A matching organism, or null if one could not be found.
- Throws:
BridgeFailedException- if any.
-
fetchByTaxIDs
Collection<Organism> fetchByTaxIDs(Collection<Integer> taxIDs) throws BridgeFailedException
Finds the complete organism records matching the provided TaxID numbers.- Parameters:
taxIDs- A collection of taxIDs to search for.- Returns:
- A collection of the matching organisms.
- Throws:
BridgeFailedException- if any.IllegalArgumentException- if taxIds is null
-
-