Class XmlInteractionEvidenceComplexWrapper
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml254.XmlInteractionEvidenceComplexWrapper
-
- All Implemented Interfaces:
FileSourceContext,Complex,Interaction<ModelledParticipant>,Interactor,ModelledInteraction,NamedInteraction<ModelledParticipant>,ExtendedPsiXmlInteraction<ModelledParticipant>,PsiXmlInteraction<ModelledParticipant>
public class XmlInteractionEvidenceComplexWrapper extends Object implements Complex, FileSourceContext, ExtendedPsiXmlInteraction<ModelledParticipant>
Xml wrapper for interaction evidences used as complex- Since:
11/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
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 XmlInteractionEvidenceComplexWrapper(ExtendedPsiXmlInteractionEvidence interaction)Constructor for XmlInteractionEvidenceComplexWrapper.
-
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()Collection of aliases for an interactor The Collection cannot be null and if the interactor does not have any aliases, the method should return an empty Collection.Collection<Annotation>getAnnotations()Collection of annotations for an interactor.Collection<Checksum>getChecksums()Set of checksums computed for this interactor.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()Getter for the fieldcooperativeEffects.DategetCreatedDate()getCreatedDate.EntrygetEntry()getEntry.CvTermgetEvidenceType()The evidence type for this modelled interactions.StringgetFullName()The full name of the interactor.intgetId()getId.Collection<Xref>getIdentifiers()Set of identifiers for this interactor.List<AbstractInferredInteraction>getInferredInteractions()getInferredInteractions.Collection<InteractionEvidence>getInteractionEvidences()Interaction evidences supporting this modelled interaction.CvTermgetInteractionType()getInteractionType.List<CvTerm>getInteractionTypes()getInteractionTypes.CvTermgetInteractorType()The molecule type of this interactor.Collection<ModelledConfidence>getModelledConfidences()Getter for the fieldmodelledConfidences.Collection<ModelledParameter>getModelledParameters()Getter for the fieldmodelledParameters.OrganismgetOrganism()The original source organism for this interactor.Collection<ModelledParticipant>getParticipants()getParticipants.StringgetPhysicalProperties()The physical properties for this complex.XrefgetPreferredIdentifier()The identifier in the list of identifiers which is the preferred identifier.StringgetPreferredName()The preferred name is the name by which we want to refer the interactor on our web site.StringgetRecommendedName()The recommended name of a complex.StringgetRigid()The checksum computed from the rogids from all the proteins involved in the interaction.StringgetShortName()The short name of the interactor.SourcegetSource()getSource.FileSourceLocatorgetSourceLocator()The locator of a position in a file.StringgetSystematicName()The systematic name of a complex.DategetUpdatedDate()getUpdatedDate.Collection<Xref>getXrefs()Collection of other xrefs that give more information about the interactor.protected voidinitialiseModelledConfidences()initialiseModelledConfidences.protected voidinitialiseModelledParameters()initialiseModelledParameters.protected voidinitialiseParticipants()initialiseParticipants.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 typevoidsetFullName(String name)Sets the full name of the interactorvoidsetId(int id)setId.voidsetInteractionType(CvTerm term)Sets the interaction type.voidsetInteractorType(CvTerm type)Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)voidsetIntraMolecular(boolean intra)setIntraMolecular.voidsetOrganism(Organism organism)Sets the source organism of this interactorvoidsetPhysicalProperties(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.voidsetShortName(String name)Sets the short name of an interactorvoidsetSource(Source source)Sets the source reporting the interaction.voidsetSourceLocator(FileSourceLocator locator)Sets the source locatorvoidsetSystematicName(String name)Sets the systematic name of this complex.voidsetUpdatedDate(Date updated)Sets the last update dateStringtoString()toString-
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
-
-
-
-
Constructor Detail
-
XmlInteractionEvidenceComplexWrapper
public XmlInteractionEvidenceComplexWrapper(ExtendedPsiXmlInteractionEvidence interaction)
Constructor for XmlInteractionEvidenceComplexWrapper.
- Parameters:
interaction- aExtendedPsiXmlInteractionEvidenceobject.
-
-
Method Detail
-
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
-
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
-
getParticipants
public Collection<ModelledParticipant> getParticipants()
getParticipants.
- Specified by:
getParticipantsin interfaceInteraction<ModelledParticipant>- Returns:
- a
Collectionobject.
-
getInteractionEvidences
public Collection<InteractionEvidence> getInteractionEvidences()
Interaction evidences supporting this modelled interaction. The collection cannot be null. If the modelled interaction does not have experimental interactions attached to it, the method should return an empty set- Specified by:
getInteractionEvidencesin interfaceModelledInteraction- Returns:
- the collection of experimental evidences
-
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()
Getter for the field
modelledConfidences.- Specified by:
getModelledConfidencesin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getModelledParameters
public Collection<ModelledParameter> getModelledParameters()
Getter for the field
modelledParameters.- Specified by:
getModelledParametersin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getCooperativeEffects
public Collection<CooperativeEffect> getCooperativeEffects()
Getter for the field
cooperativeEffects.- Specified by:
getCooperativeEffectsin interfaceModelledInteraction- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
Collection of annotations for an interactor. The set cannot be null and if the interactor does not have any annotations, the method should return an empty Collection. Ex: pharmacology, isoform-comment, etc.- Specified by:
getAnnotationsin interfaceInteraction<ModelledParticipant>- Specified by:
getAnnotationsin interfaceInteractor- Returns:
- the annotations
-
getChecksums
public Collection<Checksum> getChecksums()
Set of checksums computed for this interactor. The Collection cannot be null so when an interactor does not have a checksum, the method should return an empty Collection Ex: rogid:u1FCes02jPb3CGRj1aDkzpbSiuI9606, standard Inchi key, ...- Specified by:
getChecksumsin interfaceInteraction<ModelledParticipant>- Specified by:
getChecksumsin interfaceInteractor- Returns:
- the set of checksums
-
getXrefs
public Collection<Xref> getXrefs()
Collection of other xrefs that give more information about the interactor. Ex: GO references to gives function/process/location information- Specified by:
getXrefsin interfaceInteraction<ModelledParticipant>- Specified by:
getXrefsin interfaceInteractor- Returns:
- other xrefs
-
getIdentifiers
public Collection<Xref> getIdentifiers()
Set of identifiers for this interactor. The identifiers can be from different databases, can be primary identifiers and secondary identifiers but they must be unambiguous. The Collection cannot be null, when an interactor does not have any identifiers, the method should return an empty Collection. Ex: uniprotkb secondary accession O00183, primary accessions, ...- Specified by:
getIdentifiersin interfaceInteraction<ModelledParticipant>- Specified by:
getIdentifiersin interfaceInteractor- Returns:
- the alternative identifier
-
getShortName
public String getShortName()
The short name of the interactor. It cannot be null or empty. Ex: brca2- Specified by:
getShortNamein interfaceInteraction<ModelledParticipant>- Specified by:
getShortNamein interfaceInteractor- Returns:
- the short name
-
setShortName
public void setShortName(String name)
Sets the short name of an interactor- Specified by:
setShortNamein interfaceInteraction<ModelledParticipant>- Specified by:
setShortNamein interfaceInteractor- Parameters:
name- : short name
-
getFullName
public String getFullName()
The full name of the interactor. It can be null Ex: Breast cancer type 2 susceptibility protein- Specified by:
getFullNamein interfaceInteractor- Specified by:
getFullNamein interfaceNamedInteraction<ModelledParticipant>- Returns:
- the full name
-
setFullName
public void setFullName(String name)
Sets the full name of the interactor- Specified by:
setFullNamein interfaceInteractor- Specified by:
setFullNamein interfaceNamedInteraction<ModelledParticipant>- Parameters:
name- : full name
-
getPreferredIdentifier
public Xref getPreferredIdentifier()
The identifier in the list of identifiers which is the preferred identifier. If no identifiers is preferred, it should return the first identifier of the list of identifiers, null if the list of identifiers is empty.- Specified by:
getPreferredIdentifierin interfaceInteractor- Returns:
- the preferred identifier in the list of identifiers, null if the list of identifiers is empty
-
getPreferredName
public String getPreferredName()
The preferred name is the name by which we want to refer the interactor on our web site.- Specified by:
getPreferredNamein interfaceInteractor- Returns:
- the preferred name
-
getOrganism
public Organism getOrganism()
The original source organism for this interactor. It can be null in case of chemical compounds/synthetic peptides- Specified by:
getOrganismin interfaceInteractor- Returns:
- the organism
-
setOrganism
public void setOrganism(Organism organism)
Sets the source organism of this interactor- Specified by:
setOrganismin interfaceInteractor- Parameters:
organism- : source organism
-
getInteractorType
public CvTerm getInteractorType()
The molecule type of this interactor. It is a controlled vocabulary term and cannot be null. Ex: protein, gene, small molecule, ...- Specified by:
getInteractorTypein interfaceInteractor- Returns:
- interactor type
-
setInteractorType
public void setInteractorType(CvTerm type)
Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)- Specified by:
setInteractorTypein interfaceInteractor- Parameters:
type- : molecule type
-
getRigid
public String getRigid()
The checksum computed from the rogids from all the proteins involved in the interaction. It is only relevant for protein-protein interactions. This is a shortcut to the first rigid in the list of checksums- Specified by:
getRigidin interfaceInteraction<ModelledParticipant>- Returns:
- the rigid
-
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
-
initialiseModelledParameters
protected void initialiseModelledParameters()
initialiseModelledParameters.
-
initialiseModelledConfidences
protected void initialiseModelledConfidences()
initialiseModelledConfidences.
-
initialiseParticipants
protected void initialiseParticipants()
initialiseParticipants.
-
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()
Description copied from interface:ComplexThe physical properties for this complex. It is a shortcut which should point to the first complex-properties annotation in the collection of annotations. Example: Molecular mass = 154 kDa- Specified by:
getPhysicalPropertiesin interfaceComplex- Returns:
- the properties
-
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
-
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
-
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
-
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
-
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
-
getAliases
public Collection<Alias> getAliases()
Collection of aliases for an interactor The Collection cannot be null and if the interactor does not have any aliases, the method should return an empty Collection. Ex: complex-synonym, author-assigned name, ...- Specified by:
getAliasesin interfaceExtendedPsiXmlInteraction<ModelledParticipant>- Specified by:
getAliasesin interfaceInteractor- Specified by:
getAliasesin interfaceNamedInteraction<ModelledParticipant>- Specified by:
getAliasesin interfacePsiXmlInteraction<ModelledParticipant>- Returns:
- the aliases
-
getInteractionTypes
public List<CvTerm> getInteractionTypes()
getInteractionTypes.
- Specified by:
getInteractionTypesin interfaceExtendedPsiXmlInteraction<ModelledParticipant>- Returns:
- a
Listobject.
-
getEntry
public Entry getEntry()
getEntry.
- Specified by:
getEntryin interfacePsiXmlInteraction<ModelledParticipant>- Returns:
- a
Entryobject.
-
setEntry
public void setEntry(Entry entry)
setEntry.
- Specified by:
setEntryin interfacePsiXmlInteraction<ModelledParticipant>- Parameters:
entry- aEntryobject.
-
getInferredInteractions
public List<AbstractInferredInteraction> getInferredInteractions()
getInferredInteractions.
- Specified by:
getInferredInteractionsin interfaceExtendedPsiXmlInteraction<ModelledParticipant>- Returns:
- a
Listobject.
-
getId
public int getId()
getId.
- Specified by:
getIdin interfacePsiXmlInteraction<ModelledParticipant>- Returns:
- a int.
-
setId
public void setId(int id)
setId.
- Specified by:
setIdin interfacePsiXmlInteraction<ModelledParticipant>- Parameters:
id- a int.
-
isIntraMolecular
public boolean isIntraMolecular()
isIntraMolecular.
- Specified by:
isIntraMolecularin interfacePsiXmlInteraction<ModelledParticipant>- Returns:
- a boolean.
-
setIntraMolecular
public void setIntraMolecular(boolean intra)
setIntraMolecular.
- Specified by:
setIntraMolecularin interfacePsiXmlInteraction<ModelledParticipant>- Parameters:
intra- a boolean.
-
getSourceLocator
public FileSourceLocator getSourceLocator()
The locator of a position in a file. It can be null- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- the file locator
-
setSourceLocator
public void setSourceLocator(FileSourceLocator locator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
locator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
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)
Sets the evidence type- Specified by:
setEvidenceTypein interfaceModelledInteraction- Parameters:
eco- : the evidence type
-
-