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 class
AbstractFeature.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 void
clearPropertiesLinkedToIdentifiers()
clearPropertiesLinkedToIdentifiersCollection<Alias>
getAliases()
Getter for the fieldaliases
.Collection<Annotation>
getAnnotations()
Getter for the fieldannotations
.String
getFullName()
Getter for the fieldfullName
.Collection<Xref>
getIdentifiers()
Getter for the fieldidentifiers
.String
getInterpro()
Getter for the fieldinterpro
.Collection<F>
getLinkedFeatures()
Getter for the fieldlinkedFeatures
.P
getParticipant()
Getter for the fieldparticipant
.Collection<Range>
getRanges()
Getter for the fieldranges
.CvTerm
getRole()
Getter for the fieldrole
.String
getShortName()
Getter for the fieldshortName
.CvTerm
getType()
Getter for the fieldtype
.Collection<Xref>
getXrefs()
Getter for the fieldxrefs
.protected void
initialiseAliases()
initialiseAliasesprotected void
initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWithprotected void
initialiseAnnotations()
initialiseAnnotationsprotected void
initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWithprotected void
initialiseIdentifiers()
initialiseIdentifiersprotected void
initialiseIdentifiersWith(Collection<Xref> identifiers)
initialiseIdentifiersWithprotected void
initialiseLinkedFeatures()
initialiseLinkedFeaturesprotected void
initialiseLinkedFeaturesWith(Collection<F> features)
initialiseLinkedFeaturesWithprotected void
initialiseRanges()
initialiseRangesprotected void
initialiseRangesWith(Collection<Range> ranges)
initialiseRangesWithprotected void
initialiseXrefs()
initialiseXrefsprotected void
initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWithprotected void
processAddedIdentifierEvent(Xref added)
processAddedIdentifierEventprotected void
processRemovedIdentifierEvent(Xref removed)
processRemovedIdentifierEventvoid
setFullName(String name)
Sets the full name that describes the moleculevoid
setInterpro(String interpro)
Sets the interpro identifier.void
setParticipant(P participant)
Setter for the fieldparticipant
.void
setParticipantAndAddFeature(P participant)
setParticipantAndAddFeaturevoid
setRole(CvTerm effect)
Sets the interaction effect/role for this feature.void
setShortName(String name)
Sets the short name of the featurevoid
setType(CvTerm type)
Sets the feature type.String
toString()
-
-
-
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
- aCvTerm
object.
-
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
- aCollection
object.
-
initialiseAnnotationsWith
protected void initialiseAnnotationsWith(Collection<Annotation> annotations)
initialiseAnnotationsWith
- Parameters:
annotations
- aCollection
object.
-
initialiseXrefsWith
protected void initialiseXrefsWith(Collection<Xref> xrefs)
initialiseXrefsWith
- Parameters:
xrefs
- aCollection
object.
-
initialiseRangesWith
protected void initialiseRangesWith(Collection<Range> ranges)
initialiseRangesWith
- Parameters:
ranges
- aCollection
object.
-
initialiseLinkedFeatures
protected void initialiseLinkedFeatures()
initialiseLinkedFeatures
-
initialiseLinkedFeaturesWith
protected void initialiseLinkedFeaturesWith(Collection<F> features)
initialiseLinkedFeaturesWith
- Parameters:
features
- aCollection
object.
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases
-
initialiseAliasesWith
protected void initialiseAliasesWith(Collection<Alias> aliases)
initialiseAliasesWith
- Parameters:
aliases
- aCollection
object.
-
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:
getIdentifiers
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
getXrefs
public Collection<Xref> getXrefs()
Getter for the field
xrefs
.
-
getAnnotations
public Collection<Annotation> getAnnotations()
Getter for the field
annotations
.- Specified by:
getAnnotations
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
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:
getLinkedFeatures
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
getAliases
public Collection<Alias> getAliases()
Getter for the field
aliases
.- Specified by:
getAliases
in interfaceFeature<P extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
processAddedIdentifierEvent
protected void processAddedIdentifierEvent(Xref added)
processAddedIdentifierEvent
- Parameters:
added
- aXref
object.
-
processRemovedIdentifierEvent
protected void processRemovedIdentifierEvent(Xref removed)
processRemovedIdentifierEvent
- Parameters:
removed
- aXref
object.
-
clearPropertiesLinkedToIdentifiers
protected void clearPropertiesLinkedToIdentifiers()
clearPropertiesLinkedToIdentifiers
-
-