Class MinimalFeatureEnricher<F extends Feature>

    • Constructor Detail

      • MinimalFeatureEnricher

        public MinimalFeatureEnricher()

        Constructor for MinimalFeatureEnricher.

    • Method Detail

      • enrich

        public void enrich​(F featureToEnrich)
                    throws EnricherException
        Enrichment of a single feature.
        Specified by:
        enrich in interface MIEnricher<F extends Feature>
        Parameters:
        featureToEnrich - The feature which is to be enriched.
        Throws:
        EnricherException - Thrown if problems are encountered in the fetcher
      • processMinimalUpdates

        public void processMinimalUpdates​(F featureToEnrich)
                                   throws EnricherException

        processMinimalUpdates.

        Parameters:
        featureToEnrich - a F object.
        Throws:
        EnricherException - if any.
      • processRanges

        protected void processRanges​(F featureToEnrich)
                              throws EnricherException

        processRanges.

        Parameters:
        featureToEnrich - a F object.
        Throws:
        EnricherException - if any.
      • processMinimalUpdates

        public void processMinimalUpdates​(F objectToEnrich,
                                          F objectSource)
                                   throws EnricherException

        processMinimalUpdates.

        Parameters:
        objectToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • processRanges

        protected void processRanges​(F objectToEnrich,
                                     F objectSource)
                              throws EnricherException

        processRanges.

        Parameters:
        objectToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • processIdentifiers

        protected void processIdentifiers​(F objectToEnrich,
                                          F objectSource)
                                   throws EnricherException

        processIdentifiers.

        Parameters:
        objectToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • processFullName

        protected void processFullName​(F objectToEnrich,
                                       F objectSource)
                                throws EnricherException

        processFullName.

        Parameters:
        objectToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • processShortLabel

        protected void processShortLabel​(F objectToEnrich,
                                         F objectSource)
                                  throws EnricherException

        processShortLabel.

        Parameters:
        objectToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • processOtherProperties

        protected void processOtherProperties​(F featureToEnrich)
                                       throws EnricherException

        processOtherProperties.

        Parameters:
        featureToEnrich - a F object.
        Throws:
        EnricherException - if any.
      • processOtherProperties

        protected void processOtherProperties​(F featureToEnrich,
                                              F objectSource)
                                       throws EnricherException

        processOtherProperties.

        Parameters:
        featureToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • onSequenceUpdate

        public void onSequenceUpdate​(Protein protein,
                                     String oldSequence)
        Listen to the event where the sequence of a protein has been changed. If oldSequence is null, it means that the sequence has been initialised. If the sequence of the protein is null, it means that the sequence of the protein has been reset
        Specified by:
        onSequenceUpdate in interface PolymerChangeListener<F extends Feature>
        Parameters:
        protein - : updated polymer
        oldSequence - : old sequence
      • onShortNameUpdate

        public void onShortNameUpdate​(Protein interactor,
                                      String oldShortName)
        Listens for the event where the shortName has been changed.
        Specified by:
        onShortNameUpdate in interface InteractorChangeListener<F extends Feature>
        Parameters:
        interactor - The interactor which has changed.
        oldShortName - The old shortName.
      • onFullNameUpdate

        public void onFullNameUpdate​(Protein interactor,
                                     String oldFullName)
        Listens for the event where the fullName has been changed.
        Specified by:
        onFullNameUpdate in interface InteractorChangeListener<F extends Feature>
        Parameters:
        interactor - The interactor which has changed.
        oldFullName - The old fullName.
      • onOrganismUpdate

        public void onOrganismUpdate​(Protein interactor,
                                     Organism o)
        Listen to the event where the organism of a interactor has been initialised. This event happens when a interactor does not have any organisms
        Specified by:
        onOrganismUpdate in interface InteractorChangeListener<F extends Feature>
        Parameters:
        interactor - The interactor which has changed.
        o - a Organism object.
      • onInteractorTypeUpdate

        public void onInteractorTypeUpdate​(Protein interactor,
                                           CvTerm old)
        Listen to the event where the interactor type has been initialised. This event happens when a interactor does not have any interactor types
        Specified by:
        onInteractorTypeUpdate in interface InteractorChangeListener<F extends Feature>
        Parameters:
        interactor - The interactor which has changed.
        old - a CvTerm object.
      • onAddedAlias

        public void onAddedAlias​(Protein o,
                                 Alias added)
        Listen to the event where an alias has been added to the object aliases.
        Specified by:
        onAddedAlias in interface AliasesChangeListener<F extends Feature>
        Parameters:
        o - The object which has changed.
        added - The added alias.
      • onRemovedAlias

        public void onRemovedAlias​(Protein o,
                                   Alias removed)
        Listen to the event where an alias has been removed from the object aliases.
        Specified by:
        onRemovedAlias in interface AliasesChangeListener<F extends Feature>
        Parameters:
        o - The object which has changed.
        removed - The removed alias.
      • onAddedAnnotation

        public void onAddedAnnotation​(Protein o,
                                      Annotation added)
        Listen to the event where an annotation has been added to the object annotations.
        Specified by:
        onAddedAnnotation in interface AnnotationsChangeListener<F extends Feature>
        Parameters:
        o - : the parent of this annotation
        added - : the added annotation
      • onRemovedAnnotation

        public void onRemovedAnnotation​(Protein o,
                                        Annotation removed)
        Listen to the event where an annotation has been removed from the object annotations.
        Specified by:
        onRemovedAnnotation in interface AnnotationsChangeListener<F extends Feature>
        Parameters:
        o - : the parent of this annotation
        removed - : the removed annotation
      • onAddedChecksum

        public void onAddedChecksum​(Protein interactor,
                                    Checksum added)
        Listen to the event where a checksum has been added to the interactor checksums.
        Specified by:
        onAddedChecksum in interface ChecksumsChangeListener<F extends Feature>
        Parameters:
        interactor - The interactor which has changed.
        added - The added checksum.
      • onRemovedChecksum

        public void onRemovedChecksum​(Protein interactor,
                                      Checksum removed)
        Listen to the event where a checksum has been removed from the interactor checksums.
        Specified by:
        onRemovedChecksum in interface ChecksumsChangeListener<F extends Feature>
        Parameters:
        interactor - The interactor which has changed.
        removed - The removed checksum.
      • onAddedIdentifier

        public void onAddedIdentifier​(Protein o,
                                      Xref added)
        Listen to the event where an identifier has been added to the protein identifiers.
        Specified by:
        onAddedIdentifier in interface IdentifiersChangeListener<F extends Feature>
        Parameters:
        o - The object which has changed.
        added - The added identifier
      • onRemovedIdentifier

        public void onRemovedIdentifier​(Protein o,
                                        Xref removed)
        Listen to the event where an identifier has been removed from the protein identifiers.
        Specified by:
        onRemovedIdentifier in interface IdentifiersChangeListener<F extends Feature>
        Parameters:
        o - The object which has changed.
        removed - The removed identifier.
      • onAddedXref

        public void onAddedXref​(Protein o,
                                Xref added)
        Listen to the event where a xref has been added to the protein xrefs.
        Specified by:
        onAddedXref in interface XrefsChangeListener<F extends Feature>
        Parameters:
        o - The object which has changed.
        added - The added Xref.
      • onRemovedXref

        public void onRemovedXref​(Protein o,
                                  Xref removed)
        Listen to the event where a xref has been removed from the interactor xrefs.
        Specified by:
        onRemovedXref in interface XrefsChangeListener<F extends Feature>
        Parameters:
        o - The object which has changed.
        removed - The removed Xref.
      • processFeatureType

        protected void processFeatureType​(F featureToEnrich)
                                   throws EnricherException

        processFeatureType.

        Parameters:
        featureToEnrich - a F object.
        Throws:
        EnricherException - if any.
      • processFeatureType

        protected void processFeatureType​(F featureToEnrich,
                                          F objectSource)
                                   throws EnricherException

        processFeatureType.

        Parameters:
        featureToEnrich - a F object.
        objectSource - a F object.
        Throws:
        EnricherException - if any.
      • onInvalidRange

        protected void onInvalidRange​(F feature,
                                      Range range,
                                      Collection<String> errorMessages)

        onInvalidRange.

        Parameters:
        feature - a F object.
        range - a Range object.
        errorMessages - a Collection object.
      • onOutOfDateRange

        protected void onOutOfDateRange​(F feature,
                                        Range range,
                                        Collection<String> errorMessages,
                                        String oldSequence)

        onOutOfDateRange.

        Parameters:
        feature - a F object.
        range - a Range object.
        errorMessages - a Collection object.
        oldSequence - a String object.
      • updateRangePositions

        protected boolean updateRangePositions()

        updateRangePositions.

        Returns:
        a boolean.