Class FullFeatureEvidenceUpdater
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalFeatureEnricher<F>
-
- psidev.psi.mi.jami.enricher.impl.full.FullFeatureEnricher<F>
-
- psidev.psi.mi.jami.enricher.impl.full.FullFeatureUpdater<FeatureEvidence>
-
- psidev.psi.mi.jami.enricher.impl.full.FullFeatureEvidenceUpdater
-
- All Implemented Interfaces:
EventListener,FeatureEnricher<FeatureEvidence>,EnricherListener<Protein>,InteractorEnricherListener<Protein>,ProteinEnricherListener,MIEnricher<FeatureEvidence>,ProteinListeningFeatureEnricher<FeatureEvidence>,AliasesChangeListener<Protein>,AnnotationsChangeListener<Protein>,ChecksumsChangeListener<Protein>,IdentifiersChangeListener<Protein>,InteractorChangeListener<Protein>,PolymerChangeListener<Protein>,ProteinChangeListener,XrefsChangeListener<Protein>
public class FullFeatureEvidenceUpdater extends FullFeatureUpdater<FeatureEvidence>
Provides full update of feature evidence. - update full properties of feature. See FullFeatureUpdater - update detection methods if cv term enricher is not null- Since:
- 13/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Modifier Constructor Description FullFeatureEvidenceUpdater()Constructor for FullFeatureEvidenceUpdater.protectedFullFeatureEvidenceUpdater(MinimalFeatureEvidenceUpdater minimalEnricher)Constructor for FullFeatureEvidenceUpdater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CvTermEnrichergetCvTermEnricher()Gets the subEnricher for CvTerms.FeatureEnricherListener<FeatureEvidence>getFeatureEnricherListener()Retrieves the listener of feature changes.MinimalFeatureEvidenceUpdatergetMinimalEnricher()Getter for the fieldminimalEnricher.voidonAddedAlias(Protein o, Alias added)Listen to the event where an alias has been added to the object aliases.voidonAddedAnnotation(Protein o, Annotation added)Listen to the event where an annotation has been added to the object annotations.voidonAddedChecksum(Protein interactor, Checksum added)Listen to the event where a checksum has been added to the interactor checksums.voidonAddedIdentifier(Protein o, Xref added)Listen to the event where an identifier has been added to the protein identifiers.voidonAddedXref(Protein o, Xref added)Listen to the event where a xref has been added to the protein xrefs.voidonEnrichmentComplete(Protein object, EnrichmentStatus status, String message)onEnrichmentComplete.voidonEnrichmentError(Protein object, String message, Exception e)onEnrichmentError.voidonFullNameUpdate(Protein interactor, String oldFullName)Listens for the event where the fullName has been changed.voidonInteractorTypeUpdate(Protein interactor, CvTerm old)Listen to the event where the interactor type has been initialised.voidonOrganismUpdate(Protein interactor, Organism o)Listen to the event where the organism of a interactor has been initialised.voidonRemovedAlias(Protein o, Alias removed)Listen to the event where an alias has been removed from the object aliases.voidonRemovedAnnotation(Protein o, Annotation removed)Listen to the event where an annotation has been removed from the object annotations.voidonRemovedChecksum(Protein interactor, Checksum removed)Listen to the event where a checksum has been removed from the interactor checksums.voidonRemovedIdentifier(Protein o, Xref removed)Listen to the event where an identifier has been removed from the protein identifiers.voidonRemovedXref(Protein o, Xref removed)Listen to the event where a xref has been removed from the interactor xrefs.voidonSequenceUpdate(Protein protein, String oldSequence)Listen to the event where the sequence of a protein has been changed.voidonShortNameUpdate(Protein interactor, String oldShortName)Listens for the event where the shortName has been changed.voidprocessMinimalUpdates(FeatureEvidence objectToEnrich, FeatureEvidence objectSource)processMinimalUpdates.protected voidprocessOtherProperties(FeatureEvidence featureToEnrich, FeatureEvidence objectSource)processOtherProperties.protected voidprocessParameters(FeatureEvidence featureToEnrich, FeatureEvidence objectSource)processParameters.voidsetCvTermEnricher(CvTermEnricher cvTermEnricher)setCvTermEnricher.voidsetFeatureEnricherListener(FeatureEnricherListener<FeatureEvidence> featureEnricherListener)setFeatureEnricherListener.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.full.FullFeatureUpdater
getMinimalUpdater, processAliases, processAnnotations, processLinkedFeatures, processRole, processXrefs
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.full.FullFeatureEnricher
enrich, mergeLinkedFeatures, processOtherProperties, processRole
-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalFeatureEnricher
enrich, enrich, onInvalidRange, onOutOfDateRange, processFeatureType, processFeatureType, processFullName, processIdentifiers, processMinimalUpdates, processRanges, processRanges, processRangeStatus, processShortLabel, setFeaturesWithRangesToUpdate, updateRangePositions
-
-
-
-
Constructor Detail
-
FullFeatureEvidenceUpdater
public FullFeatureEvidenceUpdater()
Constructor for FullFeatureEvidenceUpdater.
-
FullFeatureEvidenceUpdater
protected FullFeatureEvidenceUpdater(MinimalFeatureEvidenceUpdater minimalEnricher)
Constructor for FullFeatureEvidenceUpdater.
- Parameters:
minimalEnricher- aMinimalFeatureEvidenceUpdaterobject.
-
-
Method Detail
-
processMinimalUpdates
public void processMinimalUpdates(FeatureEvidence objectToEnrich, FeatureEvidence objectSource) throws EnricherException
processMinimalUpdates.
- Overrides:
processMinimalUpdatesin classMinimalFeatureEnricher<FeatureEvidence>- Parameters:
objectToEnrich- a F object.objectSource- a F object.- Throws:
EnricherException- if any.
-
setFeatureEnricherListener
public void setFeatureEnricherListener(FeatureEnricherListener<FeatureEvidence> featureEnricherListener)
setFeatureEnricherListener.
Sets the listener of feature changes. Can be null.- Specified by:
setFeatureEnricherListenerin interfaceFeatureEnricher<FeatureEvidence>- Overrides:
setFeatureEnricherListenerin classFullFeatureUpdater<FeatureEvidence>- Parameters:
featureEnricherListener- aFeatureEnricherListenerobject.
-
getFeatureEnricherListener
public FeatureEnricherListener<FeatureEvidence> getFeatureEnricherListener()
Retrieves the listener of feature changes. May be null if changes are not being listened to.- Specified by:
getFeatureEnricherListenerin interfaceFeatureEnricher<FeatureEvidence>- Overrides:
getFeatureEnricherListenerin classFullFeatureUpdater<FeatureEvidence>- Returns:
- The current listener of feature changes.
-
setCvTermEnricher
public void setCvTermEnricher(CvTermEnricher cvTermEnricher)
setCvTermEnricher.
Sets the subEnricher for CvTerms. Can be null.- Specified by:
setCvTermEnricherin interfaceFeatureEnricher<FeatureEvidence>- Overrides:
setCvTermEnricherin classFullFeatureUpdater<FeatureEvidence>- Parameters:
cvTermEnricher- aCvTermEnricherobject.
-
getCvTermEnricher
public CvTermEnricher getCvTermEnricher()
Gets the subEnricher for CvTerms. Can be null.- Specified by:
getCvTermEnricherin interfaceFeatureEnricher<FeatureEvidence>- Overrides:
getCvTermEnricherin classFullFeatureUpdater<FeatureEvidence>- Returns:
- The CvTerm enricher which is being used.
-
onSequenceUpdate
public void onSequenceUpdate(Protein protein, String oldSequence)
Listen to the event where the sequence of a protein has been changed. If oldSequence is null, it means that the sequence has been initialised. If the sequence of the protein is null, it means that the sequence of the protein has been reset- Specified by:
onSequenceUpdatein interfacePolymerChangeListener<Protein>- Overrides:
onSequenceUpdatein classFullFeatureUpdater<FeatureEvidence>- Parameters:
protein- : updated polymeroldSequence- : old sequence
-
onShortNameUpdate
public void onShortNameUpdate(Protein interactor, String oldShortName)
Listens for the event where the shortName has been changed.- Specified by:
onShortNameUpdatein interfaceInteractorChangeListener<Protein>- Overrides:
onShortNameUpdatein classFullFeatureUpdater<FeatureEvidence>- Parameters:
interactor- The interactor which has changed.oldShortName- The old shortName.
-
onFullNameUpdate
public void onFullNameUpdate(Protein interactor, String oldFullName)
Listens for the event where the fullName has been changed.- Specified by:
onFullNameUpdatein interfaceInteractorChangeListener<Protein>- Overrides:
onFullNameUpdatein classFullFeatureUpdater<FeatureEvidence>- Parameters:
interactor- The interactor which has changed.oldFullName- The old fullName.
-
onOrganismUpdate
public void onOrganismUpdate(Protein interactor, Organism o)
Listen to the event where the organism of a interactor has been initialised. This event happens when a interactor does not have any organisms- Specified by:
onOrganismUpdatein interfaceInteractorChangeListener<Protein>- Overrides:
onOrganismUpdatein classFullFeatureUpdater<FeatureEvidence>- Parameters:
interactor- The interactor which has changed.o- aOrganismobject.
-
onInteractorTypeUpdate
public void onInteractorTypeUpdate(Protein interactor, CvTerm old)
Listen to the event where the interactor type has been initialised. This event happens when a interactor does not have any interactor types- Specified by:
onInteractorTypeUpdatein interfaceInteractorChangeListener<Protein>- Overrides:
onInteractorTypeUpdatein classFullFeatureUpdater<FeatureEvidence>- Parameters:
interactor- The interactor which has changed.old- aCvTermobject.
-
onAddedAlias
public void onAddedAlias(Protein o, Alias added)
Listen to the event where an alias has been added to the object aliases.- Specified by:
onAddedAliasin interfaceAliasesChangeListener<Protein>- Overrides:
onAddedAliasin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- The object which has changed.added- The added alias.
-
onRemovedAlias
public void onRemovedAlias(Protein o, Alias removed)
Listen to the event where an alias has been removed from the object aliases.- Specified by:
onRemovedAliasin interfaceAliasesChangeListener<Protein>- Overrides:
onRemovedAliasin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- The object which has changed.removed- The removed alias.
-
onAddedAnnotation
public void onAddedAnnotation(Protein o, Annotation added)
Listen to the event where an annotation has been added to the object annotations.- Specified by:
onAddedAnnotationin interfaceAnnotationsChangeListener<Protein>- Overrides:
onAddedAnnotationin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- : the parent of this annotationadded- : the added annotation
-
onRemovedAnnotation
public void onRemovedAnnotation(Protein o, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.- Specified by:
onRemovedAnnotationin interfaceAnnotationsChangeListener<Protein>- Overrides:
onRemovedAnnotationin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- : the parent of this annotationremoved- : the removed annotation
-
onAddedChecksum
public void onAddedChecksum(Protein interactor, Checksum added)
Listen to the event where a checksum has been added to the interactor checksums.- Specified by:
onAddedChecksumin interfaceChecksumsChangeListener<Protein>- Overrides:
onAddedChecksumin classFullFeatureUpdater<FeatureEvidence>- Parameters:
interactor- The interactor which has changed.added- The added checksum.
-
onRemovedChecksum
public void onRemovedChecksum(Protein interactor, Checksum removed)
Listen to the event where a checksum has been removed from the interactor checksums.- Specified by:
onRemovedChecksumin interfaceChecksumsChangeListener<Protein>- Overrides:
onRemovedChecksumin classFullFeatureUpdater<FeatureEvidence>- Parameters:
interactor- The interactor which has changed.removed- The removed checksum.
-
onAddedIdentifier
public void onAddedIdentifier(Protein o, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.- Specified by:
onAddedIdentifierin interfaceIdentifiersChangeListener<Protein>- Overrides:
onAddedIdentifierin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- The object which has changed.added- The added identifier
-
onRemovedIdentifier
public void onRemovedIdentifier(Protein o, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.- Specified by:
onRemovedIdentifierin interfaceIdentifiersChangeListener<Protein>- Overrides:
onRemovedIdentifierin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- The object which has changed.removed- The removed identifier.
-
onAddedXref
public void onAddedXref(Protein o, Xref added)
Listen to the event where a xref has been added to the protein xrefs.- Specified by:
onAddedXrefin interfaceXrefsChangeListener<Protein>- Overrides:
onAddedXrefin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- The object which has changed.added- The added Xref.
-
onRemovedXref
public void onRemovedXref(Protein o, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.- Specified by:
onRemovedXrefin interfaceXrefsChangeListener<Protein>- Overrides:
onRemovedXrefin classFullFeatureUpdater<FeatureEvidence>- Parameters:
o- The object which has changed.removed- The removed Xref.
-
onEnrichmentComplete
public void onEnrichmentComplete(Protein object, EnrichmentStatus status, String message)
onEnrichmentComplete.
- Specified by:
onEnrichmentCompletein interfaceEnricherListener<Protein>- Overrides:
onEnrichmentCompletein classFullFeatureUpdater<FeatureEvidence>- Parameters:
object- a T object.status- aEnrichmentStatusobject.message- aStringobject.
-
onEnrichmentError
public void onEnrichmentError(Protein object, String message, Exception e)
onEnrichmentError.
- Specified by:
onEnrichmentErrorin interfaceEnricherListener<Protein>- Overrides:
onEnrichmentErrorin classFullFeatureUpdater<FeatureEvidence>- Parameters:
object- a T object.message- aStringobject.e- aExceptionobject.
-
processOtherProperties
protected void processOtherProperties(FeatureEvidence featureToEnrich, FeatureEvidence objectSource) throws EnricherException
processOtherProperties.
- Overrides:
processOtherPropertiesin classFullFeatureEnricher<FeatureEvidence>- Parameters:
featureToEnrich- a F object.objectSource- a F object.- Throws:
EnricherException- if any.
-
processParameters
protected void processParameters(FeatureEvidence featureToEnrich, FeatureEvidence objectSource) throws EnricherException
processParameters.
- Parameters:
featureToEnrich- aFeatureEvidenceobject.objectSource- aFeatureEvidenceobject.- Throws:
EnricherException- if any.
-
getMinimalEnricher
public MinimalFeatureEvidenceUpdater getMinimalEnricher()
Getter for the field
minimalEnricher.- Returns:
- a
MinimalFeatureEvidenceUpdaterobject.
-
-