Class FeatureChangeLogger<T extends Feature>

    • Constructor Detail

      • FeatureChangeLogger

        public FeatureChangeLogger()
    • Method Detail

      • onShortNameUpdate

        public void onShortNameUpdate​(T protein,
                                      String oldShortName)

        onShortNameUpdate

        Specified by:
        onShortNameUpdate in interface FeatureChangeListener<T extends Feature>
        Parameters:
        protein - : updated feature
        oldShortName - : old shortName
      • 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 interface IdentifiersChangeListener<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 interface IdentifiersChangeListener<T extends Feature>
        Parameters:
        protein - The object which has changed.
        removed - The removed identifier.
      • 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 interface XrefsChangeListener<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 interface XrefsChangeListener<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 interface AliasesChangeListener<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 interface AliasesChangeListener<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 interface AnnotationsChangeListener<T extends Feature>
        Parameters:
        protein - : the parent of this annotation
        added - : 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 interface AnnotationsChangeListener<T extends Feature>
        Parameters:
        protein - : the parent of this annotation
        removed - : the removed annotation