Class MinimalCvTermUpdater<C extends CvTerm>
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<C>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalCvTermEnricher<C>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalCvTermUpdater<C>
-
- All Implemented Interfaces:
CvTermEnricher<C>
,MIEnricher<C>
public class MinimalCvTermUpdater<C extends CvTerm> extends MinimalCvTermEnricher<C>
Provides minimal update of cv term. - update shortName of CvTerm if different from the shortname of the fetched CvTerm - update fullname of CvTerm if different from the fullName of the fetched CvTerm - update identifiers of CvTerm. It will add missing identifiers and remove any existing identifiers that are not in the fetched CvTerm using DefaultXrefComparator It will ignore all other properties of a CvTerm- Since:
- 13/06/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MinimalCvTermUpdater(CvTermFetcher<C> cvTermFetcher)
A constructor matching super.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processCvTerm(C cvTermToEnrich, C cvTermFetched)
A method that can be overridden to add to or change the behaviour of enrichment without effecting fetching.protected void
processFullName(C cvTermToEnrich, C cvTermFetched)
processFullName.protected void
processIdentifiers(C cvTermToEnrich, C cvTermFetched)
processIdentifiers.protected void
processShortabel(C cvTermToEnrich, C cvTermFetched)
processShortabel.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalCvTermEnricher
enrich, find, getCvTermEnricherListener, getCvTermFetcher, getRetryCount, onEnrichedVersionNotFound, setCvTermEnricherListener, 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
-
MinimalCvTermUpdater
public MinimalCvTermUpdater(CvTermFetcher<C> cvTermFetcher)
A constructor matching super.- Parameters:
cvTermFetcher
- The fetcher to initiate the enricher with. If null, an illegal state exception will be thrown at the next enrichment.
-
-
Method Detail
-
processCvTerm
public void processCvTerm(C cvTermToEnrich, C cvTermFetched) throws EnricherException
A method that can be overridden to add to or change the behaviour of enrichment without effecting fetching. A method that can be overridden to add to or change the behaviour of enrichment without effecting fetching.- Overrides:
processCvTerm
in classMinimalCvTermEnricher<C extends CvTerm>
- Parameters:
cvTermToEnrich
- the CvTerm to enrichcvTermFetched
- a C object.- Throws:
EnricherException
- if any.
-
processShortabel
protected void processShortabel(C cvTermToEnrich, C cvTermFetched) throws EnricherException
processShortabel.
- Parameters:
cvTermToEnrich
- a C object.cvTermFetched
- a C object.- Throws:
EnricherException
- if any.
-
processIdentifiers
protected void processIdentifiers(C cvTermToEnrich, C cvTermFetched) throws EnricherException
processIdentifiers.
- Overrides:
processIdentifiers
in classMinimalCvTermEnricher<C extends CvTerm>
- Parameters:
cvTermToEnrich
- a C object.cvTermFetched
- a C object.- Throws:
EnricherException
- if any.
-
processFullName
protected void processFullName(C cvTermToEnrich, C cvTermFetched) throws EnricherException
processFullName.
- Overrides:
processFullName
in classMinimalCvTermEnricher<C extends CvTerm>
- Parameters:
cvTermToEnrich
- a C object.cvTermFetched
- a C object.- Throws:
EnricherException
- if any.
-
-