Interface InteractorFetcher<I extends Interactor>
-
- All Known Subinterfaces:
BioactiveEntityFetcher
,GeneFetcher
,ProteinFetcher
- All Known Implementing Classes:
CachedChebiFetcher
,CachedUniprotGeneFetcher
,CachedUniprotProteinFetcher
,ChebiFetcher
,FailingBioactiveEntityFetcher
,FailingGeneFetcher
,FailingProteinFetcher
,MockBioactiveEntityFetcher
,MockGeneFetcher
,MockProteinFetcher
,UniprotGeneFetcher
,UniprotProteinFetcher
public interface InteractorFetcher<I extends Interactor>
Fetches the complete records which match an interactor.- Since:
- 14/05/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<I>
fetchByIdentifier(String identifier)
Takes a string identifier and returns the interactors which match.Collection<I>
fetchByIdentifiers(Collection<String> identifiers)
Takes a collection of string identifiers and returns the interactors which match.
-
-
-
Method Detail
-
fetchByIdentifier
Collection<I> fetchByIdentifier(String identifier) throws BridgeFailedException
Takes a string identifier and returns the interactors which match. Returns an empty collection of no entries are returned- Parameters:
identifier
- The identifier to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- A problem has been encountered when contacting the service
-
fetchByIdentifiers
Collection<I> fetchByIdentifiers(Collection<String> identifiers) throws BridgeFailedException
Takes a collection of string identifiers and returns the interactors which match. Returns an empty collection of no entries are returned.- Parameters:
identifiers
- The identifiers to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- if any.
-
-