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 void
addMappingResult(String oldKey, String newIdentifier)
addMappingResult.ProteinMapperListener
getListener()
Getter for the fieldlistener
.boolean
isCheckingEnabled()
isCheckingEnabled.boolean
isPriorityIdentifiers()
isPriorityIdentifiers.boolean
isPrioritySequence()
isPrioritySequence.void
map(Protein p)
Will remap the protein using the settings provided.void
setCheckingEnabled(boolean checkingEnabled)
setCheckingEnabled.void
setListener(ProteinMapperListener listener)
setListener.void
setPriorityIdentifiers(boolean priorityIdentifiers)
Setter for the fieldpriorityIdentifiers
.void
setPrioritySequence(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:
setListener
in interfaceProteinMapper
- Parameters:
listener
- aProteinMapperListener
object.
-
getListener
public ProteinMapperListener getListener()
Getter for the field
listener
.- Specified by:
getListener
in interfaceProteinMapper
- Returns:
- a
ProteinMapperListener
object.
-
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:
map
in interfaceProteinMapper
- Parameters:
p
- aProtein
object.- 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.
-
-