Class FullOrganismUpdater
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<Organism>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalOrganismEnricher
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalOrganismUpdater
-
- psidev.psi.mi.jami.enricher.impl.full.FullOrganismUpdater
-
- All Implemented Interfaces:
MIEnricher<Organism>,OrganismEnricher
public class FullOrganismUpdater extends MinimalOrganismUpdater
Provides full update of a Organism. - update minimal properties of organism. See details in MinimalOrganismUpdater - if cvTermEnricher is not null, will update cellType, tissue and compartment. It will override cellType, tissue and compartment with the ones loaded with the fetched organism if they are different from the ones in the fetched organism. (See DefaultCvTermComparator)- Since:
- 24/05/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FullOrganismUpdater(OrganismFetcher organismFetcher)Constructor for FullOrganismUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CvTermEnricher<CvTerm>getCvTermEnricher()getCvTermEnricher.protected voidprocessAliases(Organism organismToEnrich, Organism organismFetched)processAliases.protected voidprocessCellType(Organism entityToEnrich, Organism fetched)processCellType.protected voidprocessCompartment(Organism entityToEnrich, Organism fetched)processCompartment.protected voidprocessOtherProperties(Organism organismToEnrich, Organism organismFetched)processOtherProperties.protected voidprocessTissue(Organism entityToEnrich, Organism fetched)processTissue.voidsetCvTermEnricher(CvTermEnricher<CvTerm> cvEnricher)setCvTermEnricher.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalOrganismUpdater
processCommonName, processScientificName, processTaxid
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalOrganismEnricher
enrich, find, getOrganismEnricherListener, getOrganismFetcher, getRetryCount, onEnrichedVersionNotFound, setOrganismEnricherListener, 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
-
FullOrganismUpdater
public FullOrganismUpdater(OrganismFetcher organismFetcher)
Constructor for FullOrganismUpdater.
- Parameters:
organismFetcher- aOrganismFetcherobject.
-
-
Method Detail
-
getCvTermEnricher
public CvTermEnricher<CvTerm> getCvTermEnricher()
getCvTermEnricher.
- Specified by:
getCvTermEnricherin interfaceOrganismEnricher- Overrides:
getCvTermEnricherin classMinimalOrganismEnricher- Returns:
- a
CvTermEnricherobject.
-
setCvTermEnricher
public void setCvTermEnricher(CvTermEnricher<CvTerm> cvEnricher)
setCvTermEnricher.
- Specified by:
setCvTermEnricherin interfaceOrganismEnricher- Overrides:
setCvTermEnricherin classMinimalOrganismEnricher- Parameters:
cvEnricher- aCvTermEnricherobject.
-
processOtherProperties
protected void processOtherProperties(Organism organismToEnrich, Organism organismFetched) throws EnricherException
processOtherProperties.
- Overrides:
processOtherPropertiesin classMinimalOrganismEnricher- Parameters:
organismToEnrich- aOrganismobject.organismFetched- aOrganismobject.- Throws:
EnricherException- if any.
-
processAliases
protected void processAliases(Organism organismToEnrich, Organism organismFetched) throws EnricherException
processAliases.
- Parameters:
organismToEnrich- aOrganismobject.organismFetched- aOrganismobject.- Throws:
EnricherException- if any.
-
processCellType
protected void processCellType(Organism entityToEnrich, Organism fetched) throws EnricherException
processCellType.
- Parameters:
entityToEnrich- aOrganismobject.fetched- aOrganismobject.- Throws:
EnricherException- if any.
-
processTissue
protected void processTissue(Organism entityToEnrich, Organism fetched) throws EnricherException
processTissue.
- Parameters:
entityToEnrich- aOrganismobject.fetched- aOrganismobject.- Throws:
EnricherException- if any.
-
processCompartment
protected void processCompartment(Organism entityToEnrich, Organism fetched) throws EnricherException
processCompartment.
- Parameters:
entityToEnrich- aOrganismobject.fetched- aOrganismobject.- Throws:
EnricherException- if any.
-
-