Package psidev.psi.mi.jami.listener.impl
Class CvTermChangeLogger
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.CvTermChangeLogger
-
- All Implemented Interfaces:
EventListener
,AliasesChangeListener<CvTerm>
,AnnotationsChangeListener<CvTerm>
,CvTermChangeListener
,IdentifiersChangeListener<CvTerm>
,XrefsChangeListener<CvTerm>
- Direct Known Subclasses:
CvTermEnricherLogger
,OntologyTermChangeLogger
,SourceChangeLogger
public class CvTermChangeLogger extends Object implements CvTermChangeListener
This listener will just log cvTerm change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CvTermChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAddedAlias(CvTerm cv, Alias added)
Listen to the event where an alias has been added to the object aliases.void
onAddedAnnotation(CvTerm cv, Annotation added)
Listen to the event where an annotation has been added to the object annotations.void
onAddedIdentifier(CvTerm cv, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.void
onAddedXref(CvTerm cv, Xref added)
Listen to the event where a xref has been added to the protein xrefs.void
onFullNameUpdate(CvTerm cv, String oldFullName)
Listen to the event where the fullName of a cv term has been changed.void
onMIIdentifierUpdate(CvTerm cv, String oldMI)
Listen to the event where the MI identifier of a cv term has been changed.void
onMODIdentifierUpdate(CvTerm cv, String oldMOD)
Listen to the event where the MOD identifier of a cv term has been changed.void
onPARIdentifierUpdate(CvTerm cv, String oldPAR)
Listen to the event where the PAR identifier of a cv term has been changed.void
onRemovedAlias(CvTerm cv, Alias removed)
Listen to the event where an alias has been removed from the object aliases.void
onRemovedAnnotation(CvTerm cv, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.void
onRemovedIdentifier(CvTerm cv, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.void
onRemovedXref(CvTerm cv, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.void
onShortNameUpdate(CvTerm cv, String oldShortName)
Listen to the event where the shortName of a cv term has been changed.
-
-
-
Method Detail
-
onShortNameUpdate
public void onShortNameUpdate(CvTerm cv, String oldShortName)
Listen to the event where the shortName of a cv term has been changed.- Specified by:
onShortNameUpdate
in interfaceCvTermChangeListener
- Parameters:
cv
- : updated cvoldShortName
- : old shortName
-
onFullNameUpdate
public void onFullNameUpdate(CvTerm cv, String oldFullName)
Listen to the event where the fullName of a cv term has been changed. If oldFullName is null, it means that the fullName of the cv term has been initialised. If the current fullName of the cv term is null, it means that the fullName has been reset- Specified by:
onFullNameUpdate
in interfaceCvTermChangeListener
- Parameters:
cv
- : updated cvoldFullName
- : the old fullName
-
onMIIdentifierUpdate
public void onMIIdentifierUpdate(CvTerm cv, String oldMI)
Listen to the event where the MI identifier of a cv term has been changed. If oldMI is null, it means that a MI identifier has been added to the cv term. If the MI of the cv term is null, it means that the MI identifier of the cv term has been removed- Specified by:
onMIIdentifierUpdate
in interfaceCvTermChangeListener
- Parameters:
cv
- : updated cvoldMI
- : the old MI
-
onMODIdentifierUpdate
public void onMODIdentifierUpdate(CvTerm cv, String oldMOD)
Listen to the event where the MOD identifier of a cv term has been changed. If oldMOD is null, it means that a MOD identifier has been added to the cv term. If the MOD of the cv term is null, it means that the MOD identifier of the cv term has been removed- Specified by:
onMODIdentifierUpdate
in interfaceCvTermChangeListener
- Parameters:
cv
- : updated cvoldMOD
- : the old MOD
-
onPARIdentifierUpdate
public void onPARIdentifierUpdate(CvTerm cv, String oldPAR)
Listen to the event where the PAR identifier of a cv term has been changed. If oldPAR is null, it means that a PAR identifier has been added to the cv term. If the PAR of the cv term is null, it means that the PAR identifier of the cv term has been removed- Specified by:
onPARIdentifierUpdate
in interfaceCvTermChangeListener
- Parameters:
cv
- : updated cvoldPAR
- : the old PAR
-
onAddedIdentifier
public void onAddedIdentifier(CvTerm cv, Xref added)
Listen to the event where an identifier has been added to the protein identifiers.- Specified by:
onAddedIdentifier
in interfaceIdentifiersChangeListener<CvTerm>
- Parameters:
cv
- The object which has changed.added
- The added identifier
-
onRemovedIdentifier
public void onRemovedIdentifier(CvTerm cv, Xref removed)
Listen to the event where an identifier has been removed from the protein identifiers.- Specified by:
onRemovedIdentifier
in interfaceIdentifiersChangeListener<CvTerm>
- Parameters:
cv
- The object which has changed.removed
- The removed identifier.
-
onAddedXref
public void onAddedXref(CvTerm cv, Xref added)
Listen to the event where a xref has been added to the protein xrefs.- Specified by:
onAddedXref
in interfaceXrefsChangeListener<CvTerm>
- Parameters:
cv
- The object which has changed.added
- The added Xref.
-
onRemovedXref
public void onRemovedXref(CvTerm cv, Xref removed)
Listen to the event where a xref has been removed from the interactor xrefs.- Specified by:
onRemovedXref
in interfaceXrefsChangeListener<CvTerm>
- Parameters:
cv
- The object which has changed.removed
- The removed Xref.
-
onAddedAlias
public void onAddedAlias(CvTerm cv, Alias added)
Listen to the event where an alias has been added to the object aliases.- Specified by:
onAddedAlias
in interfaceAliasesChangeListener<CvTerm>
- Parameters:
cv
- The object which has changed.added
- The added alias.
-
onRemovedAlias
public void onRemovedAlias(CvTerm cv, Alias removed)
Listen to the event where an alias has been removed from the object aliases.- Specified by:
onRemovedAlias
in interfaceAliasesChangeListener<CvTerm>
- Parameters:
cv
- The object which has changed.removed
- The removed alias.
-
onAddedAnnotation
public void onAddedAnnotation(CvTerm cv, Annotation added)
Listen to the event where an annotation has been added to the object annotations.- Specified by:
onAddedAnnotation
in interfaceAnnotationsChangeListener<CvTerm>
- Parameters:
cv
- : the parent of this annotationadded
- : the added annotation
-
onRemovedAnnotation
public void onRemovedAnnotation(CvTerm cv, Annotation removed)
Listen to the event where an annotation has been removed from the object annotations.- Specified by:
onRemovedAnnotation
in interfaceAnnotationsChangeListener<CvTerm>
- Parameters:
cv
- : the parent of this annotationremoved
- : the removed annotation
-
-