Class AbstractComplexRef
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.reference.AbstractXmlIdReference
-
- psidev.psi.mi.jami.xml.model.reference.xml253.AbstractInteractorRef
-
- psidev.psi.mi.jami.xml.model.reference.xml253.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 booleanaddAllParticipants(Collection<? extends ModelledParticipant> participants)This method will add all the participant and set the interaction of the new participant to this current interactionbooleanaddParticipant(ModelledParticipant part)addParticipant.voidassignComplexAc(String accession)Assign a complex accession to a complex.voidassignComplexAc(String accession, String version)Assign a complex accession to a complex.Collection<Alias>getAliases()getAliases.Collection<Annotation>getAnnotations()getAnnotations.Collection<Checksum>getChecksums()getChecksums.StringgetComplexAc()Complex accession if the complex has been curated under the Complex Portal curation rules.StringgetComplexVersion()Complex version if the complex has been curated under the Complex Portal curation rules.Collection<CooperativeEffect>getCooperativeEffects()getCooperativeEffects.DategetCreatedDate()getCreatedDate.protected DefaultXmlComplexgetDelegate()Getter for the fielddelegate.EntrygetEntry()getEntry.CvTermgetEvidenceType()The evidence type for this modelled interactions.Collection<Xref>getIdentifiers()getIdentifiers.List<AbstractInferredInteraction>getInferredInteractions()getInferredInteractions.Collection<InteractionEvidence>getInteractionEvidences()getInteractionEvidences.CvTermgetInteractionType()getInteractionType.List<CvTerm>getInteractionTypes()getInteractionTypes.Collection<ModelledConfidence>getModelledConfidences()getModelledConfidences.Collection<ModelledParameter>getModelledParameters()getModelledParameters.Collection<ModelledParticipant>getParticipants()getParticipants.StringgetPhysicalProperties()getPhysicalProperties.StringgetRecommendedName()The recommended name of a complex.StringgetRigid()getRigid.SourcegetSource()getSource.StringgetSystematicName()The systematic name of a complex.DategetUpdatedDate()getUpdatedDate.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseInteractorDelegate()initialiseInteractorDelegate.booleanisIntraMolecular()isIntraMolecular.booleanremoveAllParticipants(Collection<? extends ModelledParticipant> participants)This method will remove the participant and set the interaction of the removed participant to null.booleanremoveParticipant(ModelledParticipant part)removeParticipant.voidsetCreatedDate(Date created)Sets the created datevoidsetEntry(Entry entry)setEntry.voidsetEvidenceType(CvTerm eco)Sets the evidence typevoidsetInteractionType(CvTerm term)Sets the interaction type.voidsetIntraMolecular(boolean intra)setIntraMolecular.voidsetPhysicalProperties(String properties)Sets the physical properties of this complex.voidsetRecommendedName(String name)Sets the recommended name of this complex.voidsetRigid(String rigid)Sets the rigid of this interaction.voidsetSource(Source source)Sets the source reporting the interaction.voidsetSystematicName(String name)Sets the systematic name of this complex.voidsetUpdatedDate(Date updated)Sets the last update dateStringtoString()toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.reference.xml253.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:
getEvidenceTypein interfaceModelledInteraction- Returns:
- the evidence type
-
setEvidenceType
public void setEvidenceType(CvTerm eco)
Description copied from interface:ModelledInteractionSets the evidence type- Specified by:
setEvidenceTypein 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:
getComplexAcin 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:
getComplexVersionin 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:
assignComplexAcin 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:
assignComplexAcin 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:
getPhysicalPropertiesin interfaceComplex- Returns:
- a
Stringobject.
-
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:
setPhysicalPropertiesin interfaceComplex- Parameters:
properties- : complex properties
-
getInteractionEvidences
public Collection<InteractionEvidence> getInteractionEvidences()
getInteractionEvidences.
- Specified by:
getInteractionEvidencesin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getSource
public Source getSource()
getSource.
- Specified by:
getSourcein interfaceModelledInteraction- Returns:
- a
Sourceobject.
-
setSource
public void setSource(Source source)
Sets the source reporting the interaction.- Specified by:
setSourcein interfaceModelledInteraction- Parameters:
source- : source for this interaction
-
getModelledConfidences
public Collection<ModelledConfidence> getModelledConfidences()
getModelledConfidences.
- Specified by:
getModelledConfidencesin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getModelledParameters
public Collection<ModelledParameter> getModelledParameters()
getModelledParameters.
- Specified by:
getModelledParametersin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getCooperativeEffects
public Collection<CooperativeEffect> getCooperativeEffects()
getCooperativeEffects.
- Specified by:
getCooperativeEffectsin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getRigid
public String getRigid()
getRigid.
- Specified by:
getRigidin interfaceInteraction<ModelledParticipant>- Returns:
- a
Stringobject.
-
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:
setRigidin interfaceInteraction<ModelledParticipant>- Parameters:
rigid- : the rigid
-
getUpdatedDate
public Date getUpdatedDate()
getUpdatedDate.
- Specified by:
getUpdatedDatein interfaceInteraction<ModelledParticipant>- Returns:
- a
Dateobject.
-
setUpdatedDate
public void setUpdatedDate(Date updated)
Sets the last update date- Specified by:
setUpdatedDatein interfaceInteraction<ModelledParticipant>- Parameters:
updated- : last update date
-
getCreatedDate
public Date getCreatedDate()
getCreatedDate.
- Specified by:
getCreatedDatein interfaceInteraction<ModelledParticipant>- Returns:
- a
Dateobject.
-
setCreatedDate
public void setCreatedDate(Date created)
Sets the created date- Specified by:
setCreatedDatein interfaceInteraction<ModelledParticipant>- Parameters:
created- : created date
-
getInteractionType
public CvTerm getInteractionType()
getInteractionType.
- Specified by:
getInteractionTypein interfaceInteraction<ModelledParticipant>- Returns:
- a
CvTermobject.
-
setInteractionType
public void setInteractionType(CvTerm term)
Sets the interaction type.- Specified by:
setInteractionTypein interfaceInteraction<ModelledParticipant>- Parameters:
term- : interaction type
-
getParticipants
public Collection<ModelledParticipant> getParticipants()
getParticipants.
- Specified by:
getParticipantsin interfaceInteraction<ModelledParticipant>- Returns:
- a
Collectionobject.
-
addParticipant
public boolean addParticipant(ModelledParticipant part)
addParticipant.
- Specified by:
addParticipantin interfaceInteraction<ModelledParticipant>- Parameters:
part- aModelledParticipantobject.- Returns:
- a boolean.
-
removeParticipant
public boolean removeParticipant(ModelledParticipant part)
removeParticipant.
- Specified by:
removeParticipantin interfaceInteraction<ModelledParticipant>- Parameters:
part- aModelledParticipantobject.- 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:
addAllParticipantsin 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:
removeAllParticipantsin 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:
getAnnotationsin interfaceInteraction<ModelledParticipant>- Specified by:
getAnnotationsin interfaceInteractor- Overrides:
getAnnotationsin classAbstractInteractorRef- Returns:
- a
Collectionobject.
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksumsin interfaceInteraction<ModelledParticipant>- Specified by:
getChecksumsin interfaceInteractor- Overrides:
getChecksumsin classAbstractInteractorRef- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceInteraction<ModelledParticipant>- Specified by:
getXrefsin interfaceInteractor- Overrides:
getXrefsin classAbstractInteractorRef- Returns:
- a
Collectionobject.
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliasesin interfaceExtendedPsiXmlInteraction<ModelledParticipant>- Specified by:
getAliasesin interfaceInteractor- Specified by:
getAliasesin interfaceNamedInteraction<ModelledParticipant>- Specified by:
getAliasesin interfacePsiXmlInteraction<ModelledParticipant>- Overrides:
getAliasesin classAbstractInteractorRef- Returns:
- a
Collectionobject.
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfaceInteraction<ModelledParticipant>- Specified by:
getIdentifiersin interfaceInteractor- Overrides:
getIdentifiersin classAbstractInteractorRef- Returns:
- a
Collectionobject.
-
setIntraMolecular
public void setIntraMolecular(boolean intra)
setIntraMolecular.
- Specified by:
setIntraMolecularin interfacePsiXmlInteraction<ModelledParticipant>- Parameters:
intra- a boolean.
-
isIntraMolecular
public boolean isIntraMolecular()
isIntraMolecular.
- Specified by:
isIntraMolecularin interfacePsiXmlInteraction<ModelledParticipant>- Returns:
- a boolean.
-
getInferredInteractions
public List<AbstractInferredInteraction> getInferredInteractions()
getInferredInteractions.
- Specified by:
getInferredInteractionsin interfaceExtendedPsiXmlInteraction<ModelledParticipant>- Returns:
- a
Listobject.
-
setEntry
public void setEntry(Entry entry)
setEntry.
- Specified by:
setEntryin interfacePsiXmlInteraction<ModelledParticipant>- Parameters:
entry- aEntryobject.
-
getEntry
public Entry getEntry()
getEntry.
- Specified by:
getEntryin interfacePsiXmlInteraction<ModelledParticipant>- Returns:
- a
Entryobject.
-
getInteractionTypes
public List<CvTerm> getInteractionTypes()
getInteractionTypes.
- Specified by:
getInteractionTypesin interfaceExtendedPsiXmlInteraction<ModelledParticipant>- Returns:
- a
Listobject.
-
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:
setSystematicNamein 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:
getSystematicNamein 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:
setRecommendedNamein 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:
getRecommendedNamein interfaceComplex- Returns:
- the recommended name
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin 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:
initialiseInteractorDelegatein classAbstractInteractorRef
-
getDelegate
protected DefaultXmlComplex getDelegate()
Getter for the field
delegate.- Overrides:
getDelegatein classAbstractInteractorRef- Returns:
- a
ExtendedPsiXmlInteractorobject.
-
-