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 voidonAddedAlias(CvTerm cv, Alias added)Listen to the event where an alias has been added to the object aliases.voidonAddedAnnotation(CvTerm cv, Annotation added)Listen to the event where an annotation has been added to the object annotations.voidonAddedIdentifier(CvTerm cv, Xref added)Listen to the event where an identifier has been added to the protein identifiers.voidonAddedXref(CvTerm cv, Xref added)Listen to the event where a xref has been added to the protein xrefs.voidonFullNameUpdate(CvTerm cv, String oldFullName)Listen to the event where the fullName of a cv term has been changed.voidonMIIdentifierUpdate(CvTerm cv, String oldMI)Listen to the event where the MI identifier of a cv term has been changed.voidonMODIdentifierUpdate(CvTerm cv, String oldMOD)Listen to the event where the MOD identifier of a cv term has been changed.voidonPARIdentifierUpdate(CvTerm cv, String oldPAR)Listen to the event where the PAR identifier of a cv term has been changed.voidonRemovedAlias(CvTerm cv, Alias removed)Listen to the event where an alias has been removed from the object aliases.voidonRemovedAnnotation(CvTerm cv, Annotation removed)Listen to the event where an annotation has been removed from the object annotations.voidonRemovedIdentifier(CvTerm cv, Xref removed)Listen to the event where an identifier has been removed from the protein identifiers.voidonRemovedXref(CvTerm cv, Xref removed)Listen to the event where a xref has been removed from the interactor xrefs.voidonShortNameUpdate(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:
onShortNameUpdatein 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:
onFullNameUpdatein 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:
onMIIdentifierUpdatein 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:
onMODIdentifierUpdatein 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:
onPARIdentifierUpdatein 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:
onAddedIdentifierin 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:
onRemovedIdentifierin 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:
onAddedXrefin 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:
onRemovedXrefin 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:
onAddedAliasin 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:
onRemovedAliasin 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:
onAddedAnnotationin 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:
onRemovedAnnotationin interfaceAnnotationsChangeListener<CvTerm>- Parameters:
cv- : the parent of this annotationremoved- : the removed annotation
-
-