Class MockProteinMapper
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.mapper.mock.MockProteinMapper
-
- All Implemented Interfaces:
ProteinMapper
public class MockProteinMapper extends Object implements ProteinMapper
Created with IntelliJ IDEA.- Since:
- 23/07/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MockProteinMapper()Constructor for MockProteinMapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMappingResult(String oldKey, String newIdentifier)addMappingResult.ProteinMapperListenergetListener()Getter for the fieldlistener.booleanisCheckingEnabled()isCheckingEnabled.booleanisPriorityIdentifiers()isPriorityIdentifiers.booleanisPrioritySequence()isPrioritySequence.voidmap(Protein p)Will remap the protein using the settings provided.voidsetCheckingEnabled(boolean checkingEnabled)setCheckingEnabled.voidsetListener(ProteinMapperListener listener)setListener.voidsetPriorityIdentifiers(boolean priorityIdentifiers)Setter for the fieldpriorityIdentifiers.voidsetPrioritySequence(boolean prioritySequence)Setter for the fieldprioritySequence.
-
-
-
Method Detail
-
addMappingResult
public void addMappingResult(String oldKey, String newIdentifier)
addMappingResult.
-
setListener
public void setListener(ProteinMapperListener listener)
setListener.
- Specified by:
setListenerin interfaceProteinMapper- Parameters:
listener- aProteinMapperListenerobject.
-
getListener
public ProteinMapperListener getListener()
Getter for the field
listener.- Specified by:
getListenerin interfaceProteinMapper- Returns:
- a
ProteinMapperListenerobject.
-
map
public void map(Protein p) throws BridgeFailedException
Will remap the protein using the settings provided. A remapReport will be fired to all RemapListeners at the end.- Specified by:
mapin interfaceProteinMapper- Parameters:
p- aProteinobject.- Throws:
BridgeFailedException- if any.
-
isCheckingEnabled
public boolean isCheckingEnabled()
isCheckingEnabled.
- Returns:
- a boolean.
-
setCheckingEnabled
public void setCheckingEnabled(boolean checkingEnabled)
setCheckingEnabled.
- Parameters:
checkingEnabled- a boolean.
-
isPriorityIdentifiers
public boolean isPriorityIdentifiers()
isPriorityIdentifiers.
- Returns:
- a boolean.
-
setPriorityIdentifiers
public void setPriorityIdentifiers(boolean priorityIdentifiers)
Setter for the field
priorityIdentifiers.- Parameters:
priorityIdentifiers- a boolean.
-
isPrioritySequence
public boolean isPrioritySequence()
isPrioritySequence.
- Returns:
- a boolean.
-
setPrioritySequence
public void setPrioritySequence(boolean prioritySequence)
Setter for the field
prioritySequence.- Parameters:
prioritySequence- a boolean.
-
-