Class AbstractComplexRef
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
-
- psidev.psi.mi.jami.xml.model.reference.xml254.AbstractInteractorRef
-
- psidev.psi.mi.jami.xml.model.reference.xml254.AbstractComplexRef
-
- All Implemented Interfaces:
FileSourceContext
,Complex
,Interaction<ModelledParticipant>
,Interactor
,ModelledInteraction
,NamedInteraction<ModelledParticipant>
,ExtendedPsiXmlInteraction<ModelledParticipant>
,ExtendedPsiXmlInteractor
,PsiXmlInteraction<ModelledParticipant>
,XmlIdReference
public abstract class AbstractComplexRef extends AbstractInteractorRef implements Complex, ExtendedPsiXmlInteraction<ModelledParticipant>
Abstract class for references to a complex- 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.Complex
COMPLEX, COMPLEX_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.ModelledInteraction
ECO, ECO_MI
-
-
Constructor Summary
Constructors Constructor Description AbstractComplexRef(int ref)
Constructor for AbstractComplexRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAllParticipants(Collection<? extends ModelledParticipant> participants)
This method will add all the participant and set the interaction of the new participant to this current interactionboolean
addParticipant(ModelledParticipant part)
addParticipant.void
assignComplexAc(String accession)
Assign a complex accession to a complex.void
assignComplexAc(String accession, String version)
Assign a complex accession to a complex.Collection<Alias>
getAliases()
getAliases.Collection<Annotation>
getAnnotations()
getAnnotations.Collection<Checksum>
getChecksums()
getChecksums.String
getComplexAc()
Complex accession if the complex has been curated under the Complex Portal curation rules.String
getComplexVersion()
Complex version if the complex has been curated under the Complex Portal curation rules.Collection<CooperativeEffect>
getCooperativeEffects()
getCooperativeEffects.Date
getCreatedDate()
getCreatedDate.protected DefaultXmlComplex
getDelegate()
Getter for the fielddelegate
.Entry
getEntry()
getEntry.CvTerm
getEvidenceType()
The evidence type for this modelled interactions.Collection<Xref>
getIdentifiers()
getIdentifiers.List<AbstractInferredInteraction>
getInferredInteractions()
getInferredInteractions.Collection<InteractionEvidence>
getInteractionEvidences()
getInteractionEvidences.CvTerm
getInteractionType()
getInteractionType.List<CvTerm>
getInteractionTypes()
getInteractionTypes.Collection<ModelledConfidence>
getModelledConfidences()
getModelledConfidences.Collection<ModelledParameter>
getModelledParameters()
getModelledParameters.Collection<ModelledParticipant>
getParticipants()
getParticipants.String
getPhysicalProperties()
getPhysicalProperties.String
getRecommendedName()
The recommended name of a complex.String
getRigid()
getRigid.Source
getSource()
getSource.String
getSystematicName()
The systematic name of a complex.Date
getUpdatedDate()
getUpdatedDate.Collection<Xref>
getXrefs()
getXrefs.protected void
initialiseInteractorDelegate()
initialiseInteractorDelegate.boolean
isIntraMolecular()
isIntraMolecular.boolean
removeAllParticipants(Collection<? extends ModelledParticipant> participants)
This method will remove the participant and set the interaction of the removed participant to null.boolean
removeParticipant(ModelledParticipant part)
removeParticipant.void
setCreatedDate(Date created)
Sets the created datevoid
setEntry(Entry entry)
setEntry.void
setEvidenceType(CvTerm eco)
Sets the evidence typevoid
setInteractionType(CvTerm term)
Sets the interaction type.void
setIntraMolecular(boolean intra)
setIntraMolecular.void
setPhysicalProperties(String properties)
Sets the physical properties of this complex.void
setRecommendedName(String name)
Sets the recommended name of this complex.void
setRigid(String rigid)
Sets the rigid of this interaction.void
setSource(Source source)
Sets the source reporting the interaction.void
setSystematicName(String name)
Sets the systematic name of this complex.void
setUpdatedDate(Date updated)
Sets the last update dateString
toString()
toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.reference.xml254.AbstractInteractorRef
getFullName, getId, getInteractorType, getOrganism, getPreferredIdentifier, getPreferredName, getShortName, setDelegate, setFullName, setId, setInteractorType, setOrganism, setShortName
-
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.model.Complex
getComparableParticipants
-
Methods inherited from interface psidev.psi.mi.jami.datasource.FileSourceContext
getSourceLocator, setSourceLocator
-
Methods inherited from interface psidev.psi.mi.jami.model.Interaction
getShortName, setShortName
-
Methods inherited from interface psidev.psi.mi.jami.model.Interactor
getFullName, getInteractorType, getOrganism, getPreferredIdentifier, getPreferredName, getShortName, setFullName, setInteractorType, setOrganism, setShortName
-
Methods inherited from interface psidev.psi.mi.jami.model.NamedInteraction
getFullName, setFullName
-
Methods inherited from interface psidev.psi.mi.jami.xml.model.extension.PsiXmlInteraction
getId, setId
-
Methods inherited from interface psidev.psi.mi.jami.xml.model.reference.XmlIdReference
resolve
-
-
-
-
Method Detail
-
getEvidenceType
public CvTerm getEvidenceType()
The evidence type for this modelled interactions. Usually this Cv term is ECO (evidence code ontology) code. It can be null. Ex: ECO:0000021, physical interaction evidence- Specified by:
getEvidenceType
in interfaceModelledInteraction
- Returns:
- the evidence type
-
setEvidenceType
public void setEvidenceType(CvTerm eco)
Description copied from interface:ModelledInteraction
Sets the evidence type- Specified by:
setEvidenceType
in interfaceModelledInteraction
- Parameters:
eco
- : the evidence type
-
getComplexAc
public String getComplexAc()
Complex accession if the complex has been curated under the Complex Portal curation rules. It can be null if the complex is not registered in the Complex Portal. This complex accession should be a shortcut to the complex-primary Xref in the collection of xrefs. Ex: CPX-123- Specified by:
getComplexAc
in interfaceComplex
- Returns:
- the complex accession
-
getComplexVersion
public String getComplexVersion()
Complex version if the complex has been curated under the Complex Portal curation rules. It can be null if the complex is not registered in the Complex Portal. This complex version should be a shortcut to the complex-primary Xref version in the collection of xrefs. Ex: 1- Specified by:
getComplexVersion
in interfaceComplex
- Returns:
- the complex version
-
assignComplexAc
public void assignComplexAc(String accession, String version)
Assign a complex accession to a complex. It will add the new complex-primary ref to the collection of xrefs- Specified by:
assignComplexAc
in interfaceComplex
- Parameters:
accession
- : the complex accessionversion
- : the version of the complex if it is provided. If version is null it will create the complex with version 1
-
assignComplexAc
public void assignComplexAc(String accession)
Assign a complex accession to a complex. It will add the new complex-primary ref to the collection of xrefs- Specified by:
assignComplexAc
in interfaceComplex
- Parameters:
accession
- : the complex accession. If the version is added to the accession e.g. CPX-1234.2 the complex will be updated with the corresponding version, if not it is assumed version 1
-
getPhysicalProperties
public String getPhysicalProperties()
getPhysicalProperties.
- Specified by:
getPhysicalProperties
in interfaceComplex
- Returns:
- a
String
object.
-
setPhysicalProperties
public void setPhysicalProperties(String properties)
Sets the physical properties of this complex. It will remove the old complex-properties annotation from the collection of annotations and replace it with the new complex-properties annotation. If the new complex-properties is null, all the existing complex-properties annotations will be removed from the collection of annotations- Specified by:
setPhysicalProperties
in interfaceComplex
- Parameters:
properties
- : complex properties
-
getInteractionEvidences
public Collection<InteractionEvidence> getInteractionEvidences()
getInteractionEvidences.
- Specified by:
getInteractionEvidences
in interfaceModelledInteraction
- Returns:
- a
Collection
object.
-
getSource
public Source getSource()
getSource.
- Specified by:
getSource
in interfaceModelledInteraction
- Returns:
- a
Source
object.
-
setSource
public void setSource(Source source)
Sets the source reporting the interaction.- Specified by:
setSource
in interfaceModelledInteraction
- Parameters:
source
- : source for this interaction
-
getModelledConfidences
public Collection<ModelledConfidence> getModelledConfidences()
getModelledConfidences.
- Specified by:
getModelledConfidences
in interfaceModelledInteraction
- Returns:
- a
Collection
object.
-
getModelledParameters
public Collection<ModelledParameter> getModelledParameters()
getModelledParameters.
- Specified by:
getModelledParameters
in interfaceModelledInteraction
- Returns:
- a
Collection
object.
-
getCooperativeEffects
public Collection<CooperativeEffect> getCooperativeEffects()
getCooperativeEffects.
- Specified by:
getCooperativeEffects
in interfaceModelledInteraction
- Returns:
- a
Collection
object.
-
getRigid
public String getRigid()
getRigid.
- Specified by:
getRigid
in interfaceInteraction<ModelledParticipant>
- Returns:
- a
String
object.
-
setRigid
public void setRigid(String rigid)
Sets the rigid of this interaction. It will remove the previous rigid from the list of checksum and add the new one. If rigid is null, it will remove all the rigid in the list of checksum- Specified by:
setRigid
in interfaceInteraction<ModelledParticipant>
- Parameters:
rigid
- : the rigid
-
getUpdatedDate
public Date getUpdatedDate()
getUpdatedDate.
- Specified by:
getUpdatedDate
in interfaceInteraction<ModelledParticipant>
- Returns:
- a
Date
object.
-
setUpdatedDate
public void setUpdatedDate(Date updated)
Sets the last update date- Specified by:
setUpdatedDate
in interfaceInteraction<ModelledParticipant>
- Parameters:
updated
- : last update date
-
getCreatedDate
public Date getCreatedDate()
getCreatedDate.
- Specified by:
getCreatedDate
in interfaceInteraction<ModelledParticipant>
- Returns:
- a
Date
object.
-
setCreatedDate
public void setCreatedDate(Date created)
Sets the created date- Specified by:
setCreatedDate
in interfaceInteraction<ModelledParticipant>
- Parameters:
created
- : created date
-
getInteractionType
public CvTerm getInteractionType()
getInteractionType.
- Specified by:
getInteractionType
in interfaceInteraction<ModelledParticipant>
- Returns:
- a
CvTerm
object.
-
setInteractionType
public void setInteractionType(CvTerm term)
Sets the interaction type.- Specified by:
setInteractionType
in interfaceInteraction<ModelledParticipant>
- Parameters:
term
- : interaction type
-
getParticipants
public Collection<ModelledParticipant> getParticipants()
getParticipants.
- Specified by:
getParticipants
in interfaceInteraction<ModelledParticipant>
- Returns:
- a
Collection
object.
-
addParticipant
public boolean addParticipant(ModelledParticipant part)
addParticipant.
- Specified by:
addParticipant
in interfaceInteraction<ModelledParticipant>
- Parameters:
part
- aModelledParticipant
object.- Returns:
- a boolean.
-
removeParticipant
public boolean removeParticipant(ModelledParticipant part)
removeParticipant.
- Specified by:
removeParticipant
in interfaceInteraction<ModelledParticipant>
- Parameters:
part
- aModelledParticipant
object.- Returns:
- a boolean.
-
addAllParticipants
public boolean addAllParticipants(Collection<? extends ModelledParticipant> participants)
This method will add all the participant and set the interaction of the new participant to this current interaction- Specified by:
addAllParticipants
in interfaceInteraction<ModelledParticipant>
- Parameters:
participants
- : participants to add- Returns:
- true if participant are added to the list of participants
-
removeAllParticipants
public boolean removeAllParticipants(Collection<? extends ModelledParticipant> participants)
This method will remove the participant and set the interaction of the removed participant to null.- Specified by:
removeAllParticipants
in interfaceInteraction<ModelledParticipant>
- Parameters:
participants
- : participants to remove- Returns:
- true if participant are removed from the list of participants
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotations
in interfaceInteraction<ModelledParticipant>
- Specified by:
getAnnotations
in interfaceInteractor
- Overrides:
getAnnotations
in classAbstractInteractorRef
- Returns:
- a
Collection
object.
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksums
in interfaceInteraction<ModelledParticipant>
- Specified by:
getChecksums
in interfaceInteractor
- Overrides:
getChecksums
in classAbstractInteractorRef
- Returns:
- a
Collection
object.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefs
in interfaceInteraction<ModelledParticipant>
- Specified by:
getXrefs
in interfaceInteractor
- Overrides:
getXrefs
in classAbstractInteractorRef
- Returns:
- a
Collection
object.
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliases
in interfaceExtendedPsiXmlInteraction<ModelledParticipant>
- Specified by:
getAliases
in interfaceInteractor
- Specified by:
getAliases
in interfaceNamedInteraction<ModelledParticipant>
- Specified by:
getAliases
in interfacePsiXmlInteraction<ModelledParticipant>
- Overrides:
getAliases
in classAbstractInteractorRef
- Returns:
- a
Collection
object.
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiers
in interfaceInteraction<ModelledParticipant>
- Specified by:
getIdentifiers
in interfaceInteractor
- Overrides:
getIdentifiers
in classAbstractInteractorRef
- Returns:
- a
Collection
object.
-
setIntraMolecular
public void setIntraMolecular(boolean intra)
setIntraMolecular.
- Specified by:
setIntraMolecular
in interfacePsiXmlInteraction<ModelledParticipant>
- Parameters:
intra
- a boolean.
-
isIntraMolecular
public boolean isIntraMolecular()
isIntraMolecular.
- Specified by:
isIntraMolecular
in interfacePsiXmlInteraction<ModelledParticipant>
- Returns:
- a boolean.
-
getInferredInteractions
public List<AbstractInferredInteraction> getInferredInteractions()
getInferredInteractions.
- Specified by:
getInferredInteractions
in interfaceExtendedPsiXmlInteraction<ModelledParticipant>
- Returns:
- a
List
object.
-
setEntry
public void setEntry(Entry entry)
setEntry.
- Specified by:
setEntry
in interfacePsiXmlInteraction<ModelledParticipant>
- Parameters:
entry
- aEntry
object.
-
getEntry
public Entry getEntry()
getEntry.
- Specified by:
getEntry
in interfacePsiXmlInteraction<ModelledParticipant>
- Returns:
- a
Entry
object.
-
getInteractionTypes
public List<CvTerm> getInteractionTypes()
getInteractionTypes.
- Specified by:
getInteractionTypes
in interfaceExtendedPsiXmlInteraction<ModelledParticipant>
- Returns:
- a
List
object.
-
setSystematicName
public void setSystematicName(String name)
Sets the systematic name of this complex. It will remove the old systematic name from the collection of aliases and replace it with the new systematic name. If the new systematic name is null, all the existing systematic names will be removed from the collection of aliases- Specified by:
setSystematicName
in interfaceComplex
- Parameters:
name
- : the systematic name
-
getSystematicName
public String getSystematicName()
The systematic name of a complex. It is a shortcut which should point to the first complex systematic name alias in the collection of aliases.- Specified by:
getSystematicName
in interfaceComplex
- Returns:
- the systematic name
-
setRecommendedName
public void setRecommendedName(String name)
Sets the recommended name of this complex. It will remove the old recommended name from the collection of aliases and replace it with the new recommended name. If the new recommended name is null, all the existing recommended names will be removed from the collection of aliases- Specified by:
setRecommendedName
in interfaceComplex
- Parameters:
name
- : the recommended name
-
getRecommendedName
public String getRecommendedName()
The recommended name of a complex. It is a shortcut which should point to the first complex recommended name alias in the collection of aliases.- Specified by:
getRecommendedName
in interfaceComplex
- Returns:
- the recommended name
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classAbstractInteractorRef
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
initialiseInteractorDelegate
protected void initialiseInteractorDelegate()
initialiseInteractorDelegate.
- Overrides:
initialiseInteractorDelegate
in classAbstractInteractorRef
-
getDelegate
protected DefaultXmlComplex getDelegate()
Getter for the field
delegate
.- Overrides:
getDelegate
in classAbstractInteractorRef
- Returns:
- a
ExtendedPsiXmlInteractor
object.
-
-