- 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.StringgetFullName()getFullName.intgetId()getId.Collection<Xref>getIdentifiers()getIdentifiers.StringgetInterpro()getInterpro.Collection<F>getLinkedFeatures()getLinkedFeatures.EgetParticipant()getParticipant.Collection<Range>getRanges()getRanges.CvTermgetRole()getRole.StringgetShortName()getShortName.CvTermgetType()getType.Collection<Xref>getXrefs()getXrefs.protected abstract voidinitialiseFeatureDelegate()initialiseFeatureDelegate.protected voidsetDelegate(ExtendedPsiXmlFeature<E,F> delegate)Setter for the fielddelegate.voidsetFullName(String name)Sets the full name that describes the moleculevoidsetId(int id)setId.voidsetInterpro(String interpro)Sets the interpro identifier.voidsetParticipant(E participant)setParticipant.voidsetParticipantAndAddFeature(E participant)setParticipantAndAddFeature.voidsetRole(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()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:
getIdentifiersin interfaceFeature<E extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceFeature<E extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
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:
getLinkedFeaturesin interfaceFeature<E extends Entity,F extends Feature>- Returns:
- a
Collectionobject.
-
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:
toStringin interfaceFileSourceContext- Overrides:
toStringin 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
ExtendedPsiXmlFeatureobject.
-
setDelegate
protected void setDelegate(ExtendedPsiXmlFeature<E,F> delegate)
Setter for the field
delegate.- Parameters:
delegate- aExtendedPsiXmlFeatureobject.
-
-