Class FailingBioactiveEntityFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.mock.AbstractMockFetcher<T>
-
- psidev.psi.mi.jami.bridges.fetcher.mock.AbstractFailingFetcher<Collection<BioactiveEntity>>
-
- psidev.psi.mi.jami.bridges.fetcher.mock.FailingBioactiveEntityFetcher
-
- All Implemented Interfaces:
BioactiveEntityFetcher
,InteractorFetcher<BioactiveEntity>
,MockFetcher<Collection<BioactiveEntity>>
public class FailingBioactiveEntityFetcher extends AbstractFailingFetcher<Collection<BioactiveEntity>> implements BioactiveEntityFetcher
Created with IntelliJ IDEA.- Since:
- 09/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.bridges.fetcher.mock.AbstractMockFetcher
localMap
-
-
Constructor Summary
Constructors Constructor Description FailingBioactiveEntityFetcher(int maxQuery)
Constructor for FailingBioactiveEntityFetcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<BioactiveEntity>
fetchByIdentifier(String identifier)
Takes a string identifier and returns the interactors which match.Collection<BioactiveEntity>
fetchByIdentifiers(Collection<String> identifiers)
Takes a collection of string identifiers and returns the interactors which match.-
Methods inherited from class psidev.psi.mi.jami.bridges.fetcher.mock.AbstractFailingFetcher
getEntries, getEntry
-
Methods inherited from class psidev.psi.mi.jami.bridges.fetcher.mock.AbstractMockFetcher
addEntry, clearEntries, removeEntry
-
-
-
-
Method Detail
-
fetchByIdentifier
public Collection<BioactiveEntity> fetchByIdentifier(String identifier) throws BridgeFailedException
Takes a string identifier and returns the interactors which match. Returns an empty collection of no entries are returned- Specified by:
fetchByIdentifier
in interfaceInteractorFetcher<BioactiveEntity>
- 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
public Collection<BioactiveEntity> 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.- Specified by:
fetchByIdentifiers
in interfaceInteractorFetcher<BioactiveEntity>
- Parameters:
identifiers
- The identifiers to search for.- Returns:
- The proteins which match the search term. Empty if no matches.
- Throws:
BridgeFailedException
- if any.
-
-