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 void
onAddedAlias(T protein, Alias added)
Listen to the event where an alias has been added to the object aliases.void
onAddedAnnotation(T protein, Annotation added)
Listen to the event where an annotation has been added to the object annotations.void
onAddedIdentifier(T protein, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.void
onAddedLinkedFeature(T protein, T added)
onAddedLinkedFeaturevoid
onAddedRange(T feature, Range added)
onAddedRangevoid
onAddedXref(T protein, Xref added)
Listen to the event where a xref has been added to the protein xrefs.void
onFullNameUpdate(T protein, String oldFullName)
onFullNameUpdatevoid
onInterproUpdate(T feature, String oldInterpro)
onInterproUpdatevoid
onRemovedAlias(T protein, Alias removed)
Listen to the event where an alias has been removed from the object aliases.void
onRemovedAnnotation(T protein, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.void
onRemovedIdentifier(T protein, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.void
onRemovedLinkedFeature(T protein, T removed)
onRemovedLinkedFeaturevoid
onRemovedRange(T feature, Range removed)
onRemovedRangevoid
onRemovedXref(T protein, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.void
onRoleUpdate(T protein, CvTerm oldRole)
onRoleUpdatevoid
onShortNameUpdate(T protein, String oldShortName)
onShortNameUpdatevoid
onTypeUpdate(T protein, CvTerm old)
onTypeUpdatevoid
onUpdatedRangePositions(T feature, Range range, Position oldStart, Position oldEnd)
onUpdatedRangePositions
-
-
-
Method Detail
-
onShortNameUpdate
public void onShortNameUpdate(T protein, String oldShortName)
onShortNameUpdate
- Specified by:
onShortNameUpdate
in interfaceFeatureChangeListener<T extends Feature>
- Parameters:
protein
- : updated featureoldShortName
- : old shortName
-
onFullNameUpdate
public void onFullNameUpdate(T protein, String oldFullName)
onFullNameUpdate
- Specified by:
onFullNameUpdate
in interfaceFeatureChangeListener<T extends Feature>
- Parameters:
protein
- : updated featureoldFullName
- : old fllName
-
onInterproUpdate
public void onInterproUpdate(T feature, String oldInterpro)
onInterproUpdate
- Specified by:
onInterproUpdate
in interfaceFeatureChangeListener<T extends Feature>
- Parameters:
feature
- : updated featureoldInterpro
- : old interpro
-
onTypeUpdate
public void onTypeUpdate(T protein, CvTerm old)
onTypeUpdate
- Specified by:
onTypeUpdate
in interfaceFeatureChangeListener<T extends Feature>
- Parameters:
protein
- : updated featureold
- : old type
-
onAddedRange
public void onAddedRange(T feature, Range added)
onAddedRange
- Specified by:
onAddedRange
in interfaceFeatureChangeListener<T extends Feature>
- Parameters:
feature
- : updated featureadded
- : added range
-
onRemovedRange
public void onRemovedRange(T feature, Range removed)
onRemovedRange
- Specified by:
onRemovedRange
in 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:
onUpdatedRangePositions
in 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:
onRoleUpdate
in 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:
onAddedIdentifier
in 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:
onRemovedIdentifier
in 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:
onAddedLinkedFeature
in interfaceFeatureChangeListener<T extends Feature>
- Parameters:
protein
- a T object.added
- a T object.
-
onRemovedLinkedFeature
public void onRemovedLinkedFeature(T protein, T removed)
onRemovedLinkedFeature
- Specified by:
onRemovedLinkedFeature
in 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:
onAddedXref
in 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:
onRemovedXref
in 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:
onAddedAlias
in 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:
onRemovedAlias
in 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:
onAddedAnnotation
in 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:
onRemovedAnnotation
in interfaceAnnotationsChangeListener<T extends Feature>
- Parameters:
protein
- : the parent of this annotationremoved
- : the removed annotation
-
-