Class FullInteractorPoolUpdater
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<T>
-
- psidev.psi.mi.jami.enricher.impl.AbstractInteractorEnricher<T>
-
- psidev.psi.mi.jami.enricher.impl.AbstractInteractorUpdater<T>
-
- psidev.psi.mi.jami.enricher.impl.full.FullInteractorBaseUpdater<InteractorPool>
-
- psidev.psi.mi.jami.enricher.impl.full.FullInteractorPoolUpdater
-
- All Implemented Interfaces:
InteractorEnricher<InteractorPool>
,MIEnricher<InteractorPool>
public class FullInteractorPoolUpdater extends FullInteractorBaseUpdater<InteractorPool>
A full updater for interactor pools. See description of full update in AbstractInteractorUpdater. - update all interactors in existing pool using a composite interactor enricher if it is not null. It will add missing interactors in the pool and remove any interactors that are not in the fetched interactor pool- Since:
30/01/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FullInteractorPoolUpdater()
Constructor for FullInteractorPoolUpdater.FullInteractorPoolUpdater(InteractorFetcher<InteractorPool> fetcher)
Constructor for FullInteractorPoolUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Interactor>
getInteractorComparator()
Getter for the fieldinteractorComparator
.CompositeInteractorEnricher
getInteractorMemberEnricher()
getInteractorMemberEnricher.protected boolean
isFullEnrichment()
isFullEnrichment.protected void
processMembers(InteractorPool poolToEnrich, InteractorPool fetched)
processMembers.protected void
processOtherProperties(InteractorPool poolToEnrich, InteractorPool fetched)
processOtherProperties.void
setInteractorComparator(Comparator<Interactor> interactorComparator)
Setter for the fieldinteractorComparator
.void
setInteractorEnricher(CompositeInteractorEnricher interactorEnricher)
Setter for the fieldinteractorEnricher
.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractInteractorUpdater
canEnrichInteractor, find, getInteractorEnricher, getListener, onCompletedEnrichment, onEnrichedVersionNotFound, onInteractorCheckFailure, processAliases, processAnnotations, processChecksums, processFullName, processIdentifiers, processInteractorType, processOrganism, processShortLabel, processXrefs, setListener
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractInteractorEnricher
enrich, getCvTermEnricher, getInteractorFetcher, getOrganismEnricher, getRetryCount, processInteractorType, processOrganism, setCvTermEnricher, setOrganismEnricher, setRetryCount
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher
enrich, enrich
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.enricher.MIEnricher
enrich, enrich
-
-
-
-
Constructor Detail
-
FullInteractorPoolUpdater
public FullInteractorPoolUpdater()
Constructor for FullInteractorPoolUpdater.
-
FullInteractorPoolUpdater
public FullInteractorPoolUpdater(InteractorFetcher<InteractorPool> fetcher)
Constructor for FullInteractorPoolUpdater.
- Parameters:
fetcher
- aInteractorFetcher
object.
-
-
Method Detail
-
getInteractorMemberEnricher
public CompositeInteractorEnricher getInteractorMemberEnricher()
getInteractorMemberEnricher.
- Returns:
- a
CompositeInteractorEnricher
object.
-
setInteractorEnricher
public void setInteractorEnricher(CompositeInteractorEnricher interactorEnricher)
Setter for the field
interactorEnricher
.- Parameters:
interactorEnricher
- aCompositeInteractorEnricher
object.
-
getInteractorComparator
public Comparator<Interactor> getInteractorComparator()
Getter for the field
interactorComparator
.- Returns:
- a
Comparator
object.
-
setInteractorComparator
public void setInteractorComparator(Comparator<Interactor> interactorComparator)
Setter for the field
interactorComparator
.- Parameters:
interactorComparator
- aComparator
object.
-
isFullEnrichment
protected boolean isFullEnrichment()
isFullEnrichment.
- Overrides:
isFullEnrichment
in classFullInteractorBaseUpdater<InteractorPool>
- Returns:
- a boolean.
-
processOtherProperties
protected void processOtherProperties(InteractorPool poolToEnrich, InteractorPool fetched) throws EnricherException
processOtherProperties.
- Overrides:
processOtherProperties
in classAbstractInteractorEnricher<InteractorPool>
- Parameters:
poolToEnrich
- a T object.fetched
- a T object.- Throws:
EnricherException
- if any.
-
processMembers
protected void processMembers(InteractorPool poolToEnrich, InteractorPool fetched) throws EnricherException
processMembers.
- Parameters:
poolToEnrich
- aInteractorPool
object.fetched
- aInteractorPool
object.- Throws:
EnricherException
- if any.
-
-