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 void
enrich(Collection<T> objects)
enrich.void
enrich(T objectToEnrich)
enrich.abstract void
enrich(T objectToEnrich, T fetchedObject)
enrich.abstract T
find(T objectToEnrich)
find.protected abstract void
onEnrichedVersionNotFound(T objectToEnrich)
onEnrichedVersionNotFound.
-
-
-
Method Detail
-
enrich
public void enrich(T objectToEnrich) throws EnricherException
enrich.
- Specified by:
enrich
in interfaceMIEnricher<T>
- Parameters:
objectToEnrich
- a T object.- Throws:
EnricherException
- if any.
-
enrich
public void enrich(Collection<T> objects) throws EnricherException
enrich.
- Specified by:
enrich
in interfaceMIEnricher<T>
- Parameters:
objects
- aCollection
object.- Throws:
EnricherException
- if any.
-
enrich
public abstract void enrich(T objectToEnrich, T fetchedObject) throws EnricherException
enrich.
- Specified by:
enrich
in 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.
-
-