Class MockBioactiveEntityFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.fetcher.mock.AbstractMockFetcher<Collection<BioactiveEntity>>
-
- psidev.psi.mi.jami.bridges.fetcher.mock.MockBioactiveEntityFetcher
-
- All Implemented Interfaces:
BioactiveEntityFetcher
,InteractorFetcher<BioactiveEntity>
,MockFetcher<Collection<BioactiveEntity>>
public class MockBioactiveEntityFetcher extends AbstractMockFetcher<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 MockBioactiveEntityFetcher()
-
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.AbstractMockFetcher
addEntry, clearEntries, getEntry, 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.
-
-