- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
-
- psidev.psi.mi.jami.xml.model.reference.AbstractFeatureRef<E,F>
-
- All Implemented Interfaces:
FileSourceContext
,Feature<E,F>
,ExtendedPsiXmlFeature<E,F>
,XmlIdReference
public abstract class AbstractFeatureRef<E extends Entity,F extends Feature> extends AbstractXmlIdReference implements ExtendedPsiXmlFeature<E,F>
Abstract feature reference- Since:
11/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
ref
-
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 AbstractFeatureRef(int ref)
Constructor for AbstractFeatureRef.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<Alias>
getAliases()
Collection of aliases for a feature.Collection<Annotation>
getAnnotations()
getAnnotations.protected ExtendedPsiXmlFeature<E,F>
getDelegate()
Getter for the fielddelegate
.String
getFullName()
getFullName.int
getId()
getId.Collection<Xref>
getIdentifiers()
getIdentifiers.String
getInterpro()
getInterpro.Collection<F>
getLinkedFeatures()
getLinkedFeatures.E
getParticipant()
getParticipant.Collection<Range>
getRanges()
getRanges.CvTerm
getRole()
getRole.String
getShortName()
getShortName.CvTerm
getType()
getType.Collection<Xref>
getXrefs()
getXrefs.protected abstract void
initialiseFeatureDelegate()
initialiseFeatureDelegate.protected void
setDelegate(ExtendedPsiXmlFeature<E,F> delegate)
Setter for the fielddelegate
.void
setFullName(String name)
Sets the full name that describes the moleculevoid
setId(int id)
setId.void
setInterpro(String interpro)
Sets the interpro identifier.void
setParticipant(E participant)
setParticipant.void
setParticipantAndAddFeature(E participant)
setParticipantAndAddFeature.void
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()
toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
getRef, registerForResolution
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.datasource.FileSourceContext
getSourceLocator, setSourceLocator
-
Methods inherited from interface psidev.psi.mi.jami.xml.model.reference.XmlIdReference
resolve
-
-
-
-
Method Detail
-
getShortName
public String getShortName()
getShortName.
-
setShortName
public void setShortName(String name)
Sets the short name of the feature
-
getFullName
public String getFullName()
getFullName.
-
setFullName
public void setFullName(String name)
Sets the full name that describes the molecule
-
getInterpro
public String getInterpro()
getInterpro.
-
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()
getIdentifiers.
- Specified by:
getIdentifiers
in interfaceFeature<E extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotations
in interfaceFeature<E extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
getType
public CvTerm getType()
getType.
-
setType
public void setType(CvTerm type)
Sets the feature type.
-
getRanges
public Collection<Range> getRanges()
getRanges.
-
getRole
public CvTerm getRole()
getRole.
-
setRole
public void setRole(CvTerm effect)
Sets the interaction effect/role for this feature.
-
getParticipant
public E getParticipant()
getParticipant.
-
setParticipant
public void setParticipant(E participant)
setParticipant.
-
setParticipantAndAddFeature
public void setParticipantAndAddFeature(E participant)
setParticipantAndAddFeature.
-
getLinkedFeatures
public Collection<F> getLinkedFeatures()
getLinkedFeatures.
- Specified by:
getLinkedFeatures
in interfaceFeature<E extends Entity,F extends Feature>
- Returns:
- a
Collection
object.
-
setId
public void setId(int id)
setId.
-
getId
public int getId()
getId.
-
getAliases
public Collection<Alias> getAliases()
Collection of aliases for a feature. The Collection cannot be null and if the experiment does not have any aliases, the method should return an empty Collection.
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classAbstractXmlIdReference
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
initialiseFeatureDelegate
protected abstract void initialiseFeatureDelegate()
initialiseFeatureDelegate.
-
getDelegate
protected ExtendedPsiXmlFeature<E,F> getDelegate()
Getter for the field
delegate
.- Returns:
- a
ExtendedPsiXmlFeature
object.
-
setDelegate
protected void setDelegate(ExtendedPsiXmlFeature<E,F> delegate)
Setter for the field
delegate
.- Parameters:
delegate
- aExtendedPsiXmlFeature
object.
-
-