Class MinimalFeatureUpdater<F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalFeatureEnricher<F>
-
- psidev.psi.mi.jami.enricher.impl.minimal.MinimalFeatureUpdater<F>
-
- All Implemented Interfaces:
EventListener
,FeatureEnricher<F>
,EnricherListener<Protein>
,InteractorEnricherListener<Protein>
,ProteinEnricherListener
,MIEnricher<F>
,ProteinListeningFeatureEnricher<F>
,AliasesChangeListener<Protein>
,AnnotationsChangeListener<Protein>
,ChecksumsChangeListener<Protein>
,IdentifiersChangeListener<Protein>
,InteractorChangeListener<Protein>
,PolymerChangeListener<Protein>
,ProteinChangeListener
,XrefsChangeListener<Protein>
public class MinimalFeatureUpdater<F extends Feature> extends MinimalFeatureEnricher<F>
Provides minimal update of feature. - update shortName if different - update fullName if different - enrich feature type with CvTerm enricher if not null. It will override existing feature type if different using DefaultCvTermComparator - enrich identifiers. Add missing identifiers (using DefaultXrefComparator) and remove identifiers not in the feature source - shift ranges if the protein sequence change - Ignore all other properties of a feature- Since:
- 13/08/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MinimalFeatureUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onInvalidRange(F feature, Range range, Collection<String> errorMessages)
onInvalidRange.protected void
onOutOfDateRange(F feature, Range range, Collection<String> errorMessages, String oldSequence)
onOutOfDateRange.protected void
processFeatureType(F featureToEnrich, F objectSource)
processFeatureType.protected void
processFullName(F objectToEnrich, F objectSource)
processFullName.protected void
processIdentifiers(F objectToEnrich, F objectSource)
processIdentifiers.protected void
processRanges(F objectToEnrich, F objectSource)
processRanges.protected void
processShortLabel(F objectToEnrich, F objectSource)
processShortLabel.protected boolean
updateRangePositions()
updateRangePositions.-
Methods inherited from class psidev.psi.mi.jami.enricher.impl.minimal.MinimalFeatureEnricher
enrich, enrich, enrich, getCvTermEnricher, getFeatureEnricherListener, onAddedAlias, onAddedAnnotation, onAddedChecksum, onAddedIdentifier, onAddedXref, onEnrichmentComplete, onEnrichmentError, onFullNameUpdate, onInteractorTypeUpdate, onOrganismUpdate, onRemovedAlias, onRemovedAnnotation, onRemovedChecksum, onRemovedIdentifier, onRemovedXref, onSequenceUpdate, onShortNameUpdate, processFeatureType, processMinimalUpdates, processMinimalUpdates, processOtherProperties, processOtherProperties, processRanges, processRangeStatus, setCvTermEnricher, setFeatureEnricherListener, setFeaturesWithRangesToUpdate
-
-
-
-
Method Detail
-
updateRangePositions
protected boolean updateRangePositions()
updateRangePositions.
- Overrides:
updateRangePositions
in classMinimalFeatureEnricher<F extends Feature>
- Returns:
- a boolean.
-
onInvalidRange
protected void onInvalidRange(F feature, Range range, Collection<String> errorMessages)
onInvalidRange.
- Overrides:
onInvalidRange
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
feature
- a F object.range
- aRange
object.errorMessages
- aCollection
object.
-
onOutOfDateRange
protected void onOutOfDateRange(F feature, Range range, Collection<String> errorMessages, String oldSequence)
onOutOfDateRange.
- Overrides:
onOutOfDateRange
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
feature
- a F object.range
- aRange
object.errorMessages
- aCollection
object.oldSequence
- aString
object.
-
processRanges
protected void processRanges(F objectToEnrich, F objectSource) throws EnricherException
processRanges.
- Overrides:
processRanges
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
objectToEnrich
- a F object.objectSource
- a F object.- Throws:
EnricherException
- if any.
-
processFeatureType
protected void processFeatureType(F featureToEnrich, F objectSource) throws EnricherException
processFeatureType.
- Overrides:
processFeatureType
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
featureToEnrich
- a F object.objectSource
- a F object.- Throws:
EnricherException
- if any.
-
processShortLabel
protected void processShortLabel(F objectToEnrich, F objectSource) throws EnricherException
processShortLabel.
- Overrides:
processShortLabel
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
objectToEnrich
- a F object.objectSource
- a F object.- Throws:
EnricherException
- if any.
-
processFullName
protected void processFullName(F objectToEnrich, F objectSource) throws EnricherException
processFullName.
- Overrides:
processFullName
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
objectToEnrich
- a F object.objectSource
- a F object.- Throws:
EnricherException
- if any.
-
processIdentifiers
protected void processIdentifiers(F objectToEnrich, F objectSource) throws EnricherException
processIdentifiers.
- Overrides:
processIdentifiers
in classMinimalFeatureEnricher<F extends Feature>
- Parameters:
objectToEnrich
- a F object.objectSource
- a F object.- Throws:
EnricherException
- if any.
-
-