Package psidev.psi.mi.jami.enricher.impl
Class AbstractMIEnricher<T>
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<T>
-
- All Implemented Interfaces:
MIEnricher<T>
- Direct Known Subclasses:
AbstractInteractorEnricher,MinimalCuratedPublicationEnricher,MinimalCvTermEnricher,MinimalExperimentEnricher,MinimalOntologyTermEnricher,MinimalOrganismEnricher,MinimalPublicationEnricher,MinimalSourceEnricher
public abstract class AbstractMIEnricher<T> extends Object implements MIEnricher<T>
Abstract implementation of a MIEnricher- Since:
30/09/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractMIEnricher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidenrich(Collection<T> objects)enrich.voidenrich(T objectToEnrich)enrich.abstract voidenrich(T objectToEnrich, T fetchedObject)enrich.abstract Tfind(T objectToEnrich)find.protected abstract voidonEnrichedVersionNotFound(T objectToEnrich)onEnrichedVersionNotFound.
-
-
-
Method Detail
-
enrich
public void enrich(T objectToEnrich) throws EnricherException
enrich.
- Specified by:
enrichin interfaceMIEnricher<T>- Parameters:
objectToEnrich- a T object.- Throws:
EnricherException- if any.
-
enrich
public void enrich(Collection<T> objects) throws EnricherException
enrich.
- Specified by:
enrichin interfaceMIEnricher<T>- Parameters:
objects- aCollectionobject.- Throws:
EnricherException- if any.
-
enrich
public abstract void enrich(T objectToEnrich, T fetchedObject) throws EnricherException
enrich.
- Specified by:
enrichin interfaceMIEnricher<T>- Parameters:
objectToEnrich- a T object.fetchedObject- a T object.- Throws:
EnricherException- if any.
-
find
public abstract T find(T objectToEnrich) throws EnricherException
find.
- Parameters:
objectToEnrich- a T object.- Returns:
- a T object.
- Throws:
EnricherException- if any.
-
onEnrichedVersionNotFound
protected abstract void onEnrichedVersionNotFound(T objectToEnrich) throws EnricherException
onEnrichedVersionNotFound.
- Parameters:
objectToEnrich- a T object.- Throws:
EnricherException- if any.
-
-