Class AbstractFeature<P extends Entity,F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.AbstractFeature<P,F>
-
- All Implemented Interfaces:
Feature<P,F>
- Direct Known Subclasses:
DefaultFeature,DefaultFeatureEvidence,DefaultModelledFeature
public abstract class AbstractFeature<P extends Entity,F extends Feature> extends Object implements Feature<P,F>
Abstract class for Feature- Since:
09/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractFeature.FeatureIdentifierList
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Feature
ALLOSTERIC_PTM, ALLOSTERIC_PTM_MI, BINDING_SITE, BINDING_SITE_MI, BIOLOGICAL_FEATURE, BIOLOGICAL_FEATURE_MI, DECREASING_PTM, DECREASING_PTM_MI, DIRECT_BINDING, DIRECT_BINDING_MI, DISRUPTING_PTM, DISRUPTING_PTM_MI, EXPERIMENTAL_FEATURE, EXPERIMENTAL_FEATURE_MI, INCREASING_PTM, INCREASING_PTM_MI, MUTATION, MUTATION_MI, OBSERVED_PTM, OBSERVED_PTM_MI, PREREQUISITE_PTM, PREREQUISITE_PTM_MI, RESULTING_CLEAVAGE, RESULTING_CLEAVAGE_MI, RESULTING_PTM, RESULTING_PTM_MI, SUFFICIENT_BINDING, SUFFICIENT_BINDING_MI, VARIANT, VARIANT_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractFeature()Constructor for AbstractFeature.AbstractFeature(String shortName, String fullName)Constructor for AbstractFeature.AbstractFeature(String shortName, String fullName, String interpro)Constructor for AbstractFeature.AbstractFeature(String shortName, String fullName, CvTerm type)Constructor for AbstractFeature.AbstractFeature(String shortName, String fullName, CvTerm type, String interpro)Constructor for AbstractFeature.AbstractFeature(CvTerm type)Constructor for AbstractFeature.AbstractFeature(CvTerm type, String interpro)Constructor for AbstractFeature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearPropertiesLinkedToIdentifiers()clearPropertiesLinkedToIdentifiersCollection<Alias>getAliases()Getter for the fieldaliases.Collection<Annotation>getAnnotations()Getter for the fieldannotations.StringgetFullName()Getter for the fieldfullName.Collection<Xref>getIdentifiers()Getter for the fieldidentifiers.StringgetInterpro()Getter for the fieldinterpro.Collection<F>getLinkedFeatures()Getter for the fieldlinkedFeatures.PgetParticipant()Getter for the fieldparticipant.Collection<Range>getRanges()Getter for the fieldranges.CvTermgetRole()Getter for the fieldrole.StringgetShortName()Getter for the fieldshortName.CvTermgetType()Getter for the fieldtype.Collection<Xref>getXrefs()Getter for the fieldxrefs.protected voidinitialiseAliases()initialiseAliasesprotected voidinitialiseAliasesWith(Collection<Alias> aliases)initialiseAliasesWithprotected voidinitialiseAnnotations()initialiseAnnotationsprotected voidinitialiseAnnotationsWith(Collection<Annotation> annotations)initialiseAnnotationsWithprotected voidinitialiseIdentifiers()initialiseIdentifiersprotected voidinitialiseIdentifiersWith(Collection<Xref> identifiers)initialiseIdentifiersWithprotected voidinitialiseLinkedFeatures()initialiseLinkedFeaturesprotected voidinitialiseLinkedFeaturesWith(Collection<F> features)initialiseLinkedFeaturesWithprotected voidinitialiseRanges()initialiseRangesprotected voidinitialiseRangesWith(Collection<Range> ranges)initialiseRangesWithprotected voidinitialiseXrefs()initialiseXrefsprotected voidinitialiseXrefsWith(Collection<Xref> xrefs)initialiseXrefsWithprotected voidprocessAddedIdentifierEvent(Xref added)processAddedIdentifierEventprotected voidprocessRemovedIdentifierEvent(Xref removed)processRemovedIdentifierEventvoidsetFullName(String name)Sets the full name that describes the moleculevoidsetInterpro(String interpro)Sets the interpro identifier.voidsetParticipant(P participant)Setter for the fieldparticipant.voidsetParticipantAndAddFeature(P participant)setParticipantAndAddFeaturevoidsetRole(CvTerm effect)Sets the interaction effect/role for this feature.voidsetShortName(String name)Sets the short name of the featurevoidsetType(CvTerm type)Sets the feature type.StringtoString()
-
-
-
Constructor Detail
-
AbstractFeature
public AbstractFeature()
Constructor for AbstractFeature.
-
AbstractFeature
public AbstractFeature(String shortName, String fullName)
Constructor for AbstractFeature.
-
AbstractFeature
public AbstractFeature(CvTerm type)
Constructor for AbstractFeature.
- Parameters:
type- aCvTermobject.
-
AbstractFeature
public AbstractFeature(String shortName, String fullName, CvTerm type)
Constructor for AbstractFeature.
-
AbstractFeature
public AbstractFeature(String shortName, String fullName, String interpro)
Constructor for AbstractFeature.
-
AbstractFeature
public AbstractFeature(CvTerm type, String interpro)
Constructor for AbstractFeature.
-
-
Method Detail
-
initialiseIdentifiers
protected void initialiseIdentifiers()
initialiseIdentifiers
-
initialiseAnnotations
protected void initialiseAnnotations()
initialiseAnnotations
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs
-
initialiseRanges
protected void initialiseRanges()
initialiseRanges
-
initialiseIdentifiersWith
protected void initialiseIdentifiersWith(Collection<Xref> identifiers)
initialiseIdentifiersWith
- Parameters:
identifiers- aCollectionobject.
-
initialiseAnnotationsWith
protected void initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWith
- Parameters:
annotations- aCollectionobject.
-
initialiseXrefsWith
protected void initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWith
- Parameters:
xrefs- aCollectionobject.
-
initialiseRangesWith
protected void initialiseRangesWith(Collection<Range> ranges)
initialiseRangesWith
- Parameters:
ranges- aCollectionobject.
-
initialiseLinkedFeatures
protected void initialiseLinkedFeatures()
initialiseLinkedFeatures
-
initialiseLinkedFeaturesWith
protected void initialiseLinkedFeaturesWith(Collection<F> features)
initialiseLinkedFeaturesWith
- Parameters:
features- aCollectionobject.
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases
-
initialiseAliasesWith
protected void initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWith
- Parameters:
aliases- aCollectionobject.
-
getShortName
public String getShortName()
Getter for the field
shortName.
-
setShortName
public void setShortName(String name)
Sets the short name of the feature
-
getFullName
public String getFullName()
Getter for the field
fullName.
-
setFullName
public void setFullName(String name)
Sets the full name that describes the molecule
-
getInterpro
public String getInterpro()
Getter for the field
interpro.
-
setInterpro
public void setInterpro(String interpro)
Sets the interpro identifier. It will remove the old interpro identifier and add a new interpro identity Xref in the list of identifiers. If interpro is null, it will remove all existing interpro Xref in the list of identifiers.
-
getIdentifiers
public Collection<Xref> getIdentifiers()
Getter for the field
identifiers.- Specified by:
getIdentifiersin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
Getter for the field
xrefs.
-
getAnnotations
public Collection<Annotation> getAnnotations()
Getter for the field
annotations.- Specified by:
getAnnotationsin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
getType
public CvTerm getType()
Getter for the field
type.
-
setType
public void setType(CvTerm type)
Sets the feature type.
-
getRanges
public Collection<Range> getRanges()
Getter for the field
ranges.
-
getRole
public CvTerm getRole()
Getter for the field
role.
-
setRole
public void setRole(CvTerm effect)
Sets the interaction effect/role for this feature.
-
getParticipant
public P getParticipant()
Getter for the field
participant.
-
setParticipant
public void setParticipant(P participant)
Setter for the field
participant.
-
setParticipantAndAddFeature
public void setParticipantAndAddFeature(P participant)
setParticipantAndAddFeature
-
getLinkedFeatures
public Collection<F> getLinkedFeatures()
Getter for the field
linkedFeatures.- Specified by:
getLinkedFeaturesin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
getAliases
public Collection<Alias> getAliases()
Getter for the field
aliases.- Specified by:
getAliasesin interfaceFeature<P extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
processAddedIdentifierEvent
protected void processAddedIdentifierEvent(Xref added)
processAddedIdentifierEvent
- Parameters:
added- aXrefobject.
-
processRemovedIdentifierEvent
protected void processRemovedIdentifierEvent(Xref removed)
processRemovedIdentifierEvent
- Parameters:
removed- aXrefobject.
-
clearPropertiesLinkedToIdentifiers
protected void clearPropertiesLinkedToIdentifiers()
clearPropertiesLinkedToIdentifiers
-
-