Class MinimalExperimentEnricher
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<Experiment>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalExperimentEnricher
-
- All Implemented Interfaces:
ExperimentEnricher,MIEnricher<Experiment>
- Direct Known Subclasses:
FullExperimentEnricher,MinimalExperimentUpdater
public class MinimalExperimentEnricher extends AbstractMIEnricher<Experiment> implements ExperimentEnricher
Provides minimal enrichment of experiment. - enrich publication using Publication enricher if not null. Will not override an existing publication with the publication loaded with the fetched experiment - enrich interaction detection method using CvTerm enricher if not null. Will not override an existing interaction detection method with the interaction detection method loaded with the fetched interaction detection method - enrich host organism using Organism enricher if not null. Will not override an existing host organism with the host organism loaded with the fetched experiment It will ignore all other properties of a Experiment- Since:
- 13/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MinimalExperimentEnricher()Constructor for MinimalExperimentEnricher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenrich(Collection<Experiment> objects)enrich.voidenrich(Experiment experimentToEnrich, Experiment objectSource)enrich.Experimentfind(Experiment objectToEnrich)find.CvTermEnrichergetCvTermEnricher()Gets the subEnricher for CvTerms.ExperimentEnricherListenergetExperimentEnricherListener()Gets current ExperimentEnricherListener.OrganismEnrichergetOrganismEnricher()Getter for the fieldorganismEnricher.PublicationEnrichergetPublicationEnricher()Sets the subEnricher for publications.protected voidonEnrichedVersionNotFound(Experiment experimentToEnrich)onEnrichedVersionNotFound.voidprocessExperiment(Experiment experimentToEnrich)processExperiment.voidprocessExperiment(Experiment experimentToEnrich, Experiment objectSource)processExperiment.protected voidprocessInteractionDetectionMethod(Experiment experimentToEnrich)processInteractionDetectionMethod.protected voidprocessInteractionDetectionMethod(Experiment experimentToEnrich, Experiment objectSource)processInteractionDetectionMethod.protected voidprocessOrganism(Experiment experimentToEnrich)processOrganism.protected voidprocessOrganism(Experiment experimentToEnrich, Experiment objectSource)processOrganism.protected voidprocessOtherProperties(Experiment experimentToEnrich)processOtherProperties.protected voidprocessOtherProperties(Experiment experimentToEnrich, Experiment objectSource)processOtherProperties.protected voidprocessPublication(Experiment experimentToEnrich)processPublication.protected voidprocessPublication(Experiment experimentToEnrich, Experiment objectSource)processPublication.voidsetCvTermEnricher(CvTermEnricher cvTermEnricher)setCvTermEnricher.voidsetExperimentEnricherListener(ExperimentEnricherListener listener)setExperimentEnricherListener.voidsetOrganismEnricher(OrganismEnricher organismEnricher)setOrganismEnricher.voidsetPublicationEnricher(PublicationEnricher publicationEnricher)setPublicationEnricher.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher
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
-
-
-
-
Method Detail
-
processOrganism
protected void processOrganism(Experiment experimentToEnrich) throws EnricherException
processOrganism.
- Parameters:
experimentToEnrich- aExperimentobject.- Throws:
EnricherException- if any.
-
processInteractionDetectionMethod
protected void processInteractionDetectionMethod(Experiment experimentToEnrich) throws EnricherException
processInteractionDetectionMethod.
- Parameters:
experimentToEnrich- aExperimentobject.- Throws:
EnricherException- if any.
-
processPublication
protected void processPublication(Experiment experimentToEnrich) throws EnricherException
processPublication.
- Parameters:
experimentToEnrich- aExperimentobject.- Throws:
EnricherException- if any.
-
processOtherProperties
protected void processOtherProperties(Experiment experimentToEnrich) throws EnricherException
processOtherProperties.
- Parameters:
experimentToEnrich- aExperimentobject.- Throws:
EnricherException- if any.
-
enrich
public void enrich(Collection<Experiment> objects) throws EnricherException
enrich.
- Specified by:
enrichin interfaceMIEnricher<Experiment>- Overrides:
enrichin classAbstractMIEnricher<Experiment>- Parameters:
objects- aCollectionobject.- Throws:
EnricherException- if any.
-
enrich
public void enrich(Experiment experimentToEnrich, Experiment objectSource) throws EnricherException
enrich.
- Specified by:
enrichin interfaceMIEnricher<Experiment>- Specified by:
enrichin classAbstractMIEnricher<Experiment>- Parameters:
experimentToEnrich- aExperimentobject.objectSource- aExperimentobject.- Throws:
EnricherException- if any.
-
processExperiment
public void processExperiment(Experiment experimentToEnrich, Experiment objectSource) throws EnricherException
processExperiment.
- Parameters:
experimentToEnrich- aExperimentobject.objectSource- aExperimentobject.- Throws:
EnricherException- if any.
-
find
public Experiment find(Experiment objectToEnrich) throws EnricherException
find.
- Specified by:
findin classAbstractMIEnricher<Experiment>- Parameters:
objectToEnrich- a T object.- Returns:
- a T object.
- Throws:
EnricherException- if any.
-
onEnrichedVersionNotFound
protected void onEnrichedVersionNotFound(Experiment experimentToEnrich) throws EnricherException
onEnrichedVersionNotFound.
- Specified by:
onEnrichedVersionNotFoundin classAbstractMIEnricher<Experiment>- Parameters:
experimentToEnrich- a T object.- Throws:
EnricherException- if any.
-
processExperiment
public void processExperiment(Experiment experimentToEnrich) throws EnricherException
processExperiment.
- Parameters:
experimentToEnrich- aExperimentobject.- Throws:
EnricherException- if any.
-
processOtherProperties
protected void processOtherProperties(Experiment experimentToEnrich, Experiment objectSource) throws EnricherException
processOtherProperties.
- Parameters:
experimentToEnrich- aExperimentobject.objectSource- aExperimentobject.- Throws:
EnricherException- if any.
-
processInteractionDetectionMethod
protected void processInteractionDetectionMethod(Experiment experimentToEnrich, Experiment objectSource) throws EnricherException
processInteractionDetectionMethod.
- Parameters:
experimentToEnrich- aExperimentobject.objectSource- aExperimentobject.- Throws:
EnricherException- if any.
-
processPublication
protected void processPublication(Experiment experimentToEnrich, Experiment objectSource) throws EnricherException
processPublication.
- Parameters:
experimentToEnrich- aExperimentobject.objectSource- aExperimentobject.- Throws:
EnricherException- if any.
-
processOrganism
protected void processOrganism(Experiment experimentToEnrich, Experiment objectSource) throws EnricherException
processOrganism.
- Parameters:
experimentToEnrich- aExperimentobject.objectSource- aExperimentobject.- Throws:
EnricherException- if any.
-
setCvTermEnricher
public void setCvTermEnricher(CvTermEnricher cvTermEnricher)
setCvTermEnricher.
Sets the subEnricher for CvTerms. Can be null.- Specified by:
setCvTermEnricherin interfaceExperimentEnricher- Parameters:
cvTermEnricher- aCvTermEnricherobject.
-
getCvTermEnricher
public CvTermEnricher getCvTermEnricher()
Gets the subEnricher for CvTerms. Can be null.- Specified by:
getCvTermEnricherin interfaceExperimentEnricher- Returns:
- The CvTerm enricher which is being used.
-
getPublicationEnricher
public PublicationEnricher getPublicationEnricher()
Sets the subEnricher for publications. Can be null.- Specified by:
getPublicationEnricherin interfaceExperimentEnricher- Returns:
- The publications enricher which is being used.
-
setPublicationEnricher
public void setPublicationEnricher(PublicationEnricher publicationEnricher)
setPublicationEnricher.
Gets the publications for organisms. Can be null.- Specified by:
setPublicationEnricherin interfaceExperimentEnricher- Parameters:
publicationEnricher- aPublicationEnricherobject.
-
getExperimentEnricherListener
public ExperimentEnricherListener getExperimentEnricherListener()
Gets current ExperimentEnricherListener. Can be null.- Specified by:
getExperimentEnricherListenerin interfaceExperimentEnricher- Returns:
- The listener which is currently beign used.
-
setExperimentEnricherListener
public void setExperimentEnricherListener(ExperimentEnricherListener listener)
setExperimentEnricherListener.
Sets the ExperimentEnricherListener. Can be null.- Specified by:
setExperimentEnricherListenerin interfaceExperimentEnricher- Parameters:
listener- aExperimentEnricherListenerobject.
-
getOrganismEnricher
public OrganismEnricher getOrganismEnricher()
Getter for the field
organismEnricher.- Specified by:
getOrganismEnricherin interfaceExperimentEnricher- Returns:
- a
OrganismEnricherobject.
-
setOrganismEnricher
public void setOrganismEnricher(OrganismEnricher organismEnricher)
setOrganismEnricher.
- Specified by:
setOrganismEnricherin interfaceExperimentEnricher- Parameters:
organismEnricher- aOrganismEnricherobject.
-
-