Package psidev.psi.mi.jami.listener.impl
Class FeatureChangeLogger<T extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.FeatureChangeLogger<T>
-
- All Implemented Interfaces:
EventListener,AliasesChangeListener<T>,AnnotationsChangeListener<T>,FeatureChangeListener<T>,IdentifiersChangeListener<T>,XrefsChangeListener<T>
- Direct Known Subclasses:
FeatureEnricherLogger,FeatureEvidenceChangeLogger
public class FeatureChangeLogger<T extends Feature> extends Object implements FeatureChangeListener<T>
This listener will just interactor change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description FeatureChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAddedAlias(T protein, Alias added)Listen to the event where an alias has been added to the object aliases.voidonAddedAnnotation(T protein, Annotation added)Listen to the event where an annotation has been added to the object annotations.voidonAddedIdentifier(T protein, Xref added)Listen to the event where an identifier has been added to the protein identifiers.voidonAddedLinkedFeature(T protein, T added)onAddedLinkedFeaturevoidonAddedRange(T feature, Range added)onAddedRangevoidonAddedXref(T protein, Xref added)Listen to the event where a xref has been added to the protein xrefs.voidonFullNameUpdate(T protein, String oldFullName)onFullNameUpdatevoidonInterproUpdate(T feature, String oldInterpro)onInterproUpdatevoidonRemovedAlias(T protein, Alias removed)Listen to the event where an alias has been removed from the object aliases.voidonRemovedAnnotation(T protein, Annotation removed)Listen to the event where an annotation has been removed from the object annotations.voidonRemovedIdentifier(T protein, Xref removed)Listen to the event where an identifier has been removed from the protein identifiers.voidonRemovedLinkedFeature(T protein, T removed)onRemovedLinkedFeaturevoidonRemovedRange(T feature, Range removed)onRemovedRangevoidonRemovedXref(T protein, Xref removed)Listen to the event where a xref has been removed from the interactor xrefs.voidonRoleUpdate(T protein, CvTerm oldRole)onRoleUpdatevoidonShortNameUpdate(T protein, String oldShortName)onShortNameUpdatevoidonTypeUpdate(T protein, CvTerm old)onTypeUpdatevoidonUpdatedRangePositions(T feature, Range range, Position oldStart, Position oldEnd)onUpdatedRangePositions
-
-
-
Method Detail
-
onShortNameUpdate
public void onShortNameUpdate(T protein, String oldShortName)
onShortNameUpdate
- Specified by:
onShortNameUpdatein interfaceFeatureChangeListener<T extends Feature>- Parameters:
protein- : updated featureoldShortName- : old shortName
-
onFullNameUpdate
public void onFullNameUpdate(T protein, String oldFullName)
onFullNameUpdate
- Specified by:
onFullNameUpdatein interfaceFeatureChangeListener<T extends Feature>- Parameters:
protein- : updated featureoldFullName- : old fllName
-
onInterproUpdate
public void onInterproUpdate(T feature, String oldInterpro)
onInterproUpdate
- Specified by:
onInterproUpdatein interfaceFeatureChangeListener<T extends Feature>- Parameters:
feature- : updated featureoldInterpro- : old interpro
-
onTypeUpdate
public void onTypeUpdate(T protein, CvTerm old)
onTypeUpdate
- Specified by:
onTypeUpdatein interfaceFeatureChangeListener<T extends Feature>- Parameters:
protein- : updated featureold- : old type
-
onAddedRange
public void onAddedRange(T feature, Range added)
onAddedRange
- Specified by:
onAddedRangein interfaceFeatureChangeListener<T extends Feature>- Parameters:
feature- : updated featureadded- : added range
-
onRemovedRange
public void onRemovedRange(T feature, Range removed)
onRemovedRange
- Specified by:
onRemovedRangein interfaceFeatureChangeListener<T extends Feature>- Parameters:
feature- : updated featureremoved- : removed range
-
onUpdatedRangePositions
public void onUpdatedRangePositions(T feature, Range range, Position oldStart, Position oldEnd)
onUpdatedRangePositions
- Specified by:
onUpdatedRangePositionsin interfaceFeatureChangeListener<T extends Feature>- Parameters:
feature- : updated featurerange- : updated rangeoldStart- : old startoldEnd- : old end
-
onRoleUpdate
public void onRoleUpdate(T protein, CvTerm oldRole)
onRoleUpdate
- Specified by:
onRoleUpdatein interfaceFeatureChangeListener<T extends Feature>- Parameters:
protein- : updated featureoldRole- : old role
-
onAddedIdentifier
public void onAddedIdentifier(T protein, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.- Specified by:
onAddedIdentifierin interfaceIdentifiersChangeListener<T extends Feature>- Parameters:
protein- The object which has changed.added- The added identifier
-
onRemovedIdentifier
public void onRemovedIdentifier(T protein, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.- Specified by:
onRemovedIdentifierin interfaceIdentifiersChangeListener<T extends Feature>- Parameters:
protein- The object which has changed.removed- The removed identifier.
-
onAddedLinkedFeature
public void onAddedLinkedFeature(T protein, T added)
onAddedLinkedFeature
- Specified by:
onAddedLinkedFeaturein interfaceFeatureChangeListener<T extends Feature>- Parameters:
protein- a T object.added- a T object.
-
onRemovedLinkedFeature
public void onRemovedLinkedFeature(T protein, T removed)
onRemovedLinkedFeature
- Specified by:
onRemovedLinkedFeaturein interfaceFeatureChangeListener<T extends Feature>- Parameters:
protein- a T object.removed- a T object.
-
onAddedXref
public void onAddedXref(T protein, Xref added)
Listen to the event where a xref has been added to the protein xrefs.- Specified by:
onAddedXrefin interfaceXrefsChangeListener<T extends Feature>- Parameters:
protein- The object which has changed.added- The added Xref.
-
onRemovedXref
public void onRemovedXref(T protein, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.- Specified by:
onRemovedXrefin interfaceXrefsChangeListener<T extends Feature>- Parameters:
protein- The object which has changed.removed- The removed Xref.
-
onAddedAlias
public void onAddedAlias(T protein, Alias added)
Listen to the event where an alias has been added to the object aliases.- Specified by:
onAddedAliasin interfaceAliasesChangeListener<T extends Feature>- Parameters:
protein- The object which has changed.added- The added alias.
-
onRemovedAlias
public void onRemovedAlias(T protein, Alias removed)
Listen to the event where an alias has been removed from the object aliases.- Specified by:
onRemovedAliasin interfaceAliasesChangeListener<T extends Feature>- Parameters:
protein- The object which has changed.removed- The removed alias.
-
onAddedAnnotation
public void onAddedAnnotation(T protein, Annotation added)
Listen to the event where an annotation has been added to the object annotations.- Specified by:
onAddedAnnotationin interfaceAnnotationsChangeListener<T extends Feature>- Parameters:
protein- : the parent of this annotationadded- : the added annotation
-
onRemovedAnnotation
public void onRemovedAnnotation(T protein, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.- Specified by:
onRemovedAnnotationin interfaceAnnotationsChangeListener<T extends Feature>- Parameters:
protein- : the parent of this annotationremoved- : the removed annotation
-
-