Package psidev.psi.mi.jami.listener.impl
Class OntologyTermChangeLogger
- java.lang.Object
-
- psidev.psi.mi.jami.listener.impl.CvTermChangeLogger
-
- psidev.psi.mi.jami.listener.impl.OntologyTermChangeLogger
-
- All Implemented Interfaces:
EventListener
,AliasesChangeListener<CvTerm>
,AnnotationsChangeListener<CvTerm>
,CvTermChangeListener
,IdentifiersChangeListener<CvTerm>
,OntologyTermChangeListener
,XrefsChangeListener<CvTerm>
- Direct Known Subclasses:
OntologyTermEnricherLogger
public class OntologyTermChangeLogger extends CvTermChangeLogger implements OntologyTermChangeListener
This listener will just log ontologyTerm change events- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description OntologyTermChangeLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAddedChild(OntologyTerm cv, OntologyTerm added)
Listen to the event where a child has been added to the object children.void
onAddedParent(OntologyTerm cv, OntologyTerm added)
Listen to the event where a parent has been added to the object parents.void
onDefinitionUpdate(OntologyTerm cv, String oldDef)
Listen to the event where the definition of a cv term has been changed.void
onRemovedChild(OntologyTerm cv, OntologyTerm removed)
Listen to the event where a child has been removed from the object children.void
onRemovedParent(OntologyTerm cv, OntologyTerm removed)
Listen to the event where a parent has been removed from the object parents.-
Methods inherited from class psidev.psi.mi.jami.listener.impl.CvTermChangeLogger
onAddedAlias, onAddedAnnotation, onAddedIdentifier, onAddedXref, onFullNameUpdate, onMIIdentifierUpdate, onMODIdentifierUpdate, onPARIdentifierUpdate, onRemovedAlias, onRemovedAnnotation, onRemovedIdentifier, onRemovedXref, onShortNameUpdate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.listener.AliasesChangeListener
onAddedAlias, onRemovedAlias
-
Methods inherited from interface psidev.psi.mi.jami.listener.AnnotationsChangeListener
onAddedAnnotation, onRemovedAnnotation
-
Methods inherited from interface psidev.psi.mi.jami.listener.CvTermChangeListener
onFullNameUpdate, onMIIdentifierUpdate, onMODIdentifierUpdate, onPARIdentifierUpdate, onShortNameUpdate
-
Methods inherited from interface psidev.psi.mi.jami.listener.IdentifiersChangeListener
onAddedIdentifier, onRemovedIdentifier
-
Methods inherited from interface psidev.psi.mi.jami.listener.XrefsChangeListener
onAddedXref, onRemovedXref
-
-
-
-
Method Detail
-
onAddedParent
public void onAddedParent(OntologyTerm cv, OntologyTerm added)
Listen to the event where a parent has been added to the object parents.- Specified by:
onAddedParent
in interfaceOntologyTermChangeListener
- Parameters:
cv
- : updated termadded
- : added parent
-
onRemovedParent
public void onRemovedParent(OntologyTerm cv, OntologyTerm removed)
Listen to the event where a parent has been removed from the object parents.- Specified by:
onRemovedParent
in interfaceOntologyTermChangeListener
- Parameters:
cv
- : updated termremoved
- : removed parent
-
onAddedChild
public void onAddedChild(OntologyTerm cv, OntologyTerm added)
Listen to the event where a child has been added to the object children.- Specified by:
onAddedChild
in interfaceOntologyTermChangeListener
- Parameters:
cv
- : updated termadded
- : added child
-
onRemovedChild
public void onRemovedChild(OntologyTerm cv, OntologyTerm removed)
Listen to the event where a child has been removed from the object children.- Specified by:
onRemovedChild
in interfaceOntologyTermChangeListener
- Parameters:
cv
- : updated termremoved
- : removed child
-
onDefinitionUpdate
public void onDefinitionUpdate(OntologyTerm cv, String oldDef)
Listen to the event where the definition of a cv term has been changed. If oldDefinition is null, it means that a definition has been added to the cv term. If the definition of the cv term is null, it means that the definition of the cv term has been removed- Specified by:
onDefinitionUpdate
in interfaceOntologyTermChangeListener
- Parameters:
cv
- : updated termoldDef
- : old definition
-
-