Class FullPublicationEnricher
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.AbstractMIEnricher<Publication>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalPublicationEnricher
-
- psidev.psi.mi.jami.enricher.impl.full.FullPublicationEnricher
-
- All Implemented Interfaces:
MIEnricher<Publication>
,PublicationEnricher
- Direct Known Subclasses:
FullPublicationUpdater
,ImexPublicationAssigner
,ImexPublicationRegister
,ImexPublicationUpdater
public class FullPublicationEnricher extends MinimalPublicationEnricher
Provides full enrichment of Publication. - enrich minimal properties as described in MinimalPublicationEnricher - enrich publication title. It will only enrich the title if it is not already set in the publication to enrich. It will not override any existing publication title - enrich publication journal. It will only enrich the journal if it is not already set in the publication to enrich. It will not override any existing journal - enrich xrefs (imex, etc.) of a publication. It will use DefaultXrefComparator to compare identifiers and add missing xrefs without removing any existing xrefs. - enrich annotations of a publication. It will use DefaultAnnotationComparator to compare annotations and add missing annotations without removing any existing annotations.- Since:
- 31/07/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FullPublicationEnricher(PublicationFetcher fetcher)
Constructor for FullPublicationEnricher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
processAnnotations(Publication publicationToEnrich, Publication fetched)
processAnnotations.protected void
processCurationDepth(Publication publicationToEnrich, Publication fetched)
processCurationDepth.protected void
processJournal(Publication publicationToEnrich, Publication fetched)
processJournal.protected void
processOtherProperties(Publication publicationToEnrich, Publication fetched)
processOtherProperties.protected void
processPublicationTitle(Publication publicationToEnrich, Publication fetched)
processPublicationTitle.protected void
processReleasedDate(Publication publicationToEnrich, Publication fetched)
processReleasedDate.protected void
processXrefs(Publication publicationToEnrich, Publication fetched)
processXrefs.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalPublicationEnricher
enrich, find, getPublicationEnricherListener, getPublicationFetcher, getRetryCount, onEnrichedVersionNotFound, processAuthors, processIdentifiers, processPublication, processPublicationDate, setPublicationEnricherListener, 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
-
FullPublicationEnricher
public FullPublicationEnricher(PublicationFetcher fetcher)
Constructor for FullPublicationEnricher.
- Parameters:
fetcher
- aPublicationFetcher
object.
-
-
Method Detail
-
processOtherProperties
protected void processOtherProperties(Publication publicationToEnrich, Publication fetched) throws EnricherException
processOtherProperties.
The strategy for the enrichment of the publication. This methods can be overwritten to change the behaviour of the enrichment.- Overrides:
processOtherProperties
in classMinimalPublicationEnricher
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processCurationDepth
protected void processCurationDepth(Publication publicationToEnrich, Publication fetched) throws EnricherException
processCurationDepth.
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processReleasedDate
protected void processReleasedDate(Publication publicationToEnrich, Publication fetched) throws EnricherException
processReleasedDate.
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processXrefs
protected void processXrefs(Publication publicationToEnrich, Publication fetched) throws EnricherException
processXrefs.
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processAnnotations
protected void processAnnotations(Publication publicationToEnrich, Publication fetched) throws EnricherException
processAnnotations.
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processJournal
protected void processJournal(Publication publicationToEnrich, Publication fetched) throws EnricherException
processJournal.
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
processPublicationTitle
protected void processPublicationTitle(Publication publicationToEnrich, Publication fetched) throws EnricherException
processPublicationTitle.
- Parameters:
publicationToEnrich
- aPublication
object.fetched
- aPublication
object.- Throws:
EnricherException
- if any.
-
-