Class XmlBinaryInteractionEvidenceWrapper
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.binary.XmlBinaryInteractionEvidenceWrapper
-
- All Implemented Interfaces:
BinaryInteraction<ParticipantEvidence>,BinaryInteractionEvidence,FileSourceContext,Interaction<ParticipantEvidence>,InteractionEvidence,NamedInteraction<ParticipantEvidence>,ExtendedPsiXmlInteraction<ParticipantEvidence>,ExtendedPsiXmlInteractionEvidence,PsiXmlInteraction<ParticipantEvidence>
- Direct Known Subclasses:
XmlBinaryInteractionEvidenceWrapper
public class XmlBinaryInteractionEvidenceWrapper extends Object implements BinaryInteractionEvidence, FileSourceContext, ExtendedPsiXmlInteractionEvidence
Xml implementation of BinaryInteractionWrapper with a source locator- Since:
16/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlBinaryInteractionEvidenceWrapper(ExtendedPsiXmlInteractionEvidence interaction)Constructor for XmlBinaryInteractionEvidenceWrapper.XmlBinaryInteractionEvidenceWrapper(ExtendedPsiXmlInteractionEvidence interaction, CvTerm complexExpansion)Constructor for XmlBinaryInteractionEvidenceWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllParticipants(Collection<? extends ParticipantEvidence> participants)This method will add all the participant and set the interaction of the new participant to this current interactionbooleanaddParticipant(ParticipantEvidence part)This method will add the participant and set the interaction of the new participant to this current interactionvoidassignImexId(String identifier)Assign an IMEx id to an interaction.Collection<Alias>getAliases()getAliases.Collection<Annotation>getAnnotations()The Collection of annotations describing the interaction.StringgetAvailability()The availability for this interaction.CvTermgetCausalRegulatoryMechanism()getCausalRegulatoryMechanism.Collection<Checksum>getChecksums()Set of checksums computed for this interaction..CvTermgetComplexExpansion()getComplexExpansion.Collection<Confidence>getConfidences()The confidences in this interaction.DategetCreatedDate()The creation date.EntrygetEntry()getEntry.ExperimentgetExperiment()The experiment which determined the interaction.List<Experiment>getExperiments()getExperiments.StringgetFullName()The full name of the interaction.intgetId()getId.Collection<Xref>getIdentifiers()The identifiers for an interaction.StringgetImexId()IMEx identifier if the interaction has been curated following IMEx curation rules.List<AbstractInferredInteraction>getInferredInteractions()getInferredInteractions.CvTermgetInteractionType()The interaction type is a controlled vocabulary term.List<CvTerm>getInteractionTypes()getInteractionTypes.List<ExtendedPsiXmlExperiment>getOriginalExperiments()getOriginalExperiments.Collection<Parameter>getParameters()Collection of numerical parameters for this interaction.ParticipantEvidencegetParticipantA()getParticipantA.ParticipantEvidencegetParticipantB()getParticipantB.Collection<ParticipantEvidence>getParticipants()The collection of participants involved in this interaction.StringgetRigid()The checksum computed from the rogids from all the proteins involved in the interaction.StringgetShortName()The short name of the interaction.FileSourceLocatorgetSourceLocator()The locator of a position in a file.DategetUpdatedDate()The last update date.Collection<VariableParameterValueSet>getVariableParameterValues()The collection of variableParameterValueSet this interaction has been observed with.protected ExtendedPsiXmlInteractionEvidencegetWrappedInteraction()Getter for the fieldwrappedInteraction.AbstractAvailabilitygetXmlAvailability()getXmlAvailability.Collection<Xref>getXrefs()The external cross references for an interaction.booleanisInferred()Boolean value to know if the interaction is inferred from multiple experiments which on their own would not support the interaction.booleanisIntraMolecular()isIntraMolecular.booleanisModelled()isModelled.booleanisNegative()Boolean value to know if an interaction is negative.booleanremoveAllParticipants(Collection<? extends ParticipantEvidence> participants)This method will remove the participant and set the interaction of the removed participant to null.booleanremoveParticipant(ParticipantEvidence part)This method will remove the participant and set the interaction of the new participant to nullvoidsetAvailability(String availability)Sets the availability.voidsetCausalRegulatoryMechanism(CvTerm causalRegulatoryMechanism)Sets the causal regulatory mechanism of this binary interactionvoidsetComplexExpansion(CvTerm expansion)Sets the complex expansion of this binary interactionvoidsetCreatedDate(Date created)Sets the created datevoidsetEntry(Entry entry)setEntry.voidsetExperiment(Experiment experiment)Sets the experiment for this interaction.voidsetExperimentAndAddInteractionEvidence(Experiment experiment)Sets the experiment for this interaction and add the interaction to the list of interaction evidences If the given experiment is null, it will remove this interaction evidence from the previous experiment attached to this interactionvoidsetFullName(String name)Sets the full name of the interactionvoidsetId(int id)setId.voidsetInferred(boolean inferred)Sets the inferred boolean valuevoidsetInteractionType(CvTerm term)Sets the interaction type.voidsetIntraMolecular(boolean intra)setIntraMolecular.voidsetModelled(boolean modelled)setModelled.voidsetNegative(boolean negative)Sets the negative boolean value.voidsetParticipantA(ParticipantEvidence participantA)setParticipantA.voidsetParticipantB(ParticipantEvidence participantB)setParticipantB.voidsetRigid(String rigid)Sets the rigid of this interaction.voidsetShortName(String name)Sets the short name of the interactionvoidsetSourceLocator(FileSourceLocator locator)Sets the source locatorvoidsetUpdatedDate(Date updated)Sets the last update datevoidsetXmlAvailability(AbstractAvailability availability)setXmlAvailability.StringtoString()toString
-
-
-
Constructor Detail
-
XmlBinaryInteractionEvidenceWrapper
public XmlBinaryInteractionEvidenceWrapper(ExtendedPsiXmlInteractionEvidence interaction)
Constructor for XmlBinaryInteractionEvidenceWrapper.
- Parameters:
interaction- aExtendedPsiXmlInteractionEvidenceobject.
-
XmlBinaryInteractionEvidenceWrapper
public XmlBinaryInteractionEvidenceWrapper(ExtendedPsiXmlInteractionEvidence interaction, CvTerm complexExpansion)
Constructor for XmlBinaryInteractionEvidenceWrapper.
- Parameters:
interaction- aExtendedPsiXmlInteractionEvidenceobject.complexExpansion- aCvTermobject.
-
-
Method Detail
-
getParticipantA
public ParticipantEvidence getParticipantA()
getParticipantA.
- Specified by:
getParticipantAin interfaceBinaryInteraction<ParticipantEvidence>- Returns:
- a
ParticipantEvidenceobject.
-
getParticipantB
public ParticipantEvidence getParticipantB()
getParticipantB.
- Specified by:
getParticipantBin interfaceBinaryInteraction<ParticipantEvidence>- Returns:
- a
ParticipantEvidenceobject.
-
setParticipantA
public void setParticipantA(ParticipantEvidence participantA)
setParticipantA.
- Specified by:
setParticipantAin interfaceBinaryInteraction<ParticipantEvidence>- Parameters:
participantA- aParticipantEvidenceobject.
-
setParticipantB
public void setParticipantB(ParticipantEvidence participantB)
setParticipantB.
- Specified by:
setParticipantBin interfaceBinaryInteraction<ParticipantEvidence>- Parameters:
participantB- aParticipantEvidenceobject.
-
getComplexExpansion
public CvTerm getComplexExpansion()
getComplexExpansion.
- Specified by:
getComplexExpansionin interfaceBinaryInteraction<ParticipantEvidence>- Returns:
- a
CvTermobject.
-
setComplexExpansion
public void setComplexExpansion(CvTerm expansion)
Sets the complex expansion of this binary interaction- Specified by:
setComplexExpansionin interfaceBinaryInteraction<ParticipantEvidence>- Parameters:
expansion- : the complex expansion
-
getCausalRegulatoryMechanism
public CvTerm getCausalRegulatoryMechanism()
getCausalRegulatoryMechanism.
- Specified by:
getCausalRegulatoryMechanismin interfaceBinaryInteraction<ParticipantEvidence>- Returns:
- a
CvTermobject.
-
setCausalRegulatoryMechanism
public void setCausalRegulatoryMechanism(CvTerm causalRegulatoryMechanism)
Sets the causal regulatory mechanism of this binary interaction- Specified by:
setCausalRegulatoryMechanismin interfaceBinaryInteraction<ParticipantEvidence>- Parameters:
causalRegulatoryMechanism- : the complex regulatory mechanism CvTerm
-
getParticipants
public Collection<ParticipantEvidence> getParticipants()
The collection of participants involved in this interaction. The collection cannot be null. If the interaction does not involve any participants, the method should return an empty set. The collection of participants for this binary interaction. It cannot be changed.- Specified by:
getParticipantsin interfaceInteraction<ParticipantEvidence>- Returns:
- the particiants
-
addParticipant
public boolean addParticipant(ParticipantEvidence part)
This method will add the participant and set the interaction of the new participant to this current interaction Adds a new Participant and set the Interaction of this participant if added. If the participant B and A are null, it will first set the participantA. If the participantA is set, it will set the ParticipantB- Specified by:
addParticipantin interfaceInteraction<ParticipantEvidence>- Parameters:
part- : participant to add- Returns:
- true if participant is added to the list of participants
-
removeParticipant
public boolean removeParticipant(ParticipantEvidence part)
This method will remove the participant and set the interaction of the new participant to null Removes the Participant from this binary interaction- Specified by:
removeParticipantin interfaceInteraction<ParticipantEvidence>- Parameters:
part- : participant to remove- Returns:
- true if participant is removed from the list of participants
-
addAllParticipants
public boolean addAllParticipants(Collection<? extends ParticipantEvidence> participants)
This method will add all the participant and set the interaction of the new participant to this current interaction Adds the participants and set the Interaction of this participant if added. If the participant B and A are null, it will first set the participantA. If the participantA is set, it will set the ParticipantB- Specified by:
addAllParticipantsin interfaceInteraction<ParticipantEvidence>- Parameters:
participants- : participants to add- Returns:
- true if participant are added to the list of participants
-
removeAllParticipants
public boolean removeAllParticipants(Collection<? extends ParticipantEvidence> participants)
This method will remove the participant and set the interaction of the removed participant to null.- Specified by:
removeAllParticipantsin interfaceInteraction<ParticipantEvidence>- Parameters:
participants- : participants to remove- Returns:
- true if participant are removed from the list of participants
-
getFullName
public String getFullName()
The full name of the interaction. It can be null- Specified by:
getFullNamein interfaceNamedInteraction<ParticipantEvidence>- Returns:
- the full name
-
setFullName
public void setFullName(String name)
Sets the full name of the interaction- Specified by:
setFullNamein interfaceNamedInteraction<ParticipantEvidence>- Parameters:
name- : full name
-
getAliases
public Collection<Alias> getAliases()
getAliases.
- Specified by:
getAliasesin interfaceExtendedPsiXmlInteraction<ParticipantEvidence>- Specified by:
getAliasesin interfaceExtendedPsiXmlInteractionEvidence- Specified by:
getAliasesin interfaceNamedInteraction<ParticipantEvidence>- Specified by:
getAliasesin interfacePsiXmlInteraction<ParticipantEvidence>- Returns:
- a
Collectionobject.
-
getInteractionTypes
public List<CvTerm> getInteractionTypes()
getInteractionTypes.
- Specified by:
getInteractionTypesin interfaceExtendedPsiXmlInteraction<ParticipantEvidence>- Returns:
- a
Listobject.
-
getEntry
public Entry getEntry()
getEntry.
- Specified by:
getEntryin interfacePsiXmlInteraction<ParticipantEvidence>- Returns:
- a
Entryobject.
-
setEntry
public void setEntry(Entry entry)
setEntry.
- Specified by:
setEntryin interfacePsiXmlInteraction<ParticipantEvidence>- Parameters:
entry- aEntryobject.
-
getInferredInteractions
public List<AbstractInferredInteraction> getInferredInteractions()
getInferredInteractions.
- Specified by:
getInferredInteractionsin interfaceExtendedPsiXmlInteraction<ParticipantEvidence>- Returns:
- a
Listobject.
-
getId
public int getId()
getId.
- Specified by:
getIdin interfacePsiXmlInteraction<ParticipantEvidence>- Returns:
- a int.
-
setId
public void setId(int id)
setId.
- Specified by:
setIdin interfacePsiXmlInteraction<ParticipantEvidence>- Parameters:
id- a int.
-
isIntraMolecular
public boolean isIntraMolecular()
isIntraMolecular.
- Specified by:
isIntraMolecularin interfacePsiXmlInteraction<ParticipantEvidence>- Returns:
- a boolean.
-
setIntraMolecular
public void setIntraMolecular(boolean intra)
setIntraMolecular.
- Specified by:
setIntraMolecularin interfacePsiXmlInteraction<ParticipantEvidence>- 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
-
getShortName
public String getShortName()
The short name of the interaction. It can be null. Ex: foxc1-flna, ...- Specified by:
getShortNamein interfaceInteraction<ParticipantEvidence>- Returns:
- short name of the interaction
-
setShortName
public void setShortName(String name)
Sets the short name of the interaction- Specified by:
setShortNamein interfaceInteraction<ParticipantEvidence>- Parameters:
name- : short name
-
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<ParticipantEvidence>- 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<ParticipantEvidence>- Parameters:
rigid- : the rigid
-
getIdentifiers
public Collection<Xref> getIdentifiers()
The identifiers for an interaction. The Collection cannot be null. If the interaction does not have any identifiers (IMEx is not among the identifiers), the method should return an emtpy Collection. Ex: original interaction database accession, ...- Specified by:
getIdentifiersin interfaceInteraction<ParticipantEvidence>- Returns:
- the xrefs
-
getXrefs
public Collection<Xref> getXrefs()
The external cross references for an interaction. The Collection cannot be null. If the interaction does not have any xrefs, the method should return an emtpy Collection. Ex: GO process xrefs, GO component xrefs, database accession that can identify the interaction, ...- Specified by:
getXrefsin interfaceInteraction<ParticipantEvidence>- Returns:
- the xrefs
-
getChecksums
public Collection<Checksum> getChecksums()
Set of checksums computed for this interaction.. The Collection cannot be null so when an interaction does not have a checksum, the method should return an empty Collection Ex: rigid:u1FCes02jPb3CGRj1aDkzpbSiuI9606, ...- Specified by:
getChecksumsin interfaceInteraction<ParticipantEvidence>- Returns:
- the set of checksums
-
getAnnotations
public Collection<Annotation> getAnnotations()
The Collection of annotations describing the interaction. The Collection cannot be null. If the interaction does not have any annotations, the method should return an empty Collection. Ex: figure-legend annotations, comments, cautions, ...- Specified by:
getAnnotationsin interfaceInteraction<ParticipantEvidence>- Returns:
- the annotations
-
getUpdatedDate
public Date getUpdatedDate()
The last update date. It can be null if not relevant or not known.- Specified by:
getUpdatedDatein interfaceInteraction<ParticipantEvidence>- Returns:
- the last update date
-
setUpdatedDate
public void setUpdatedDate(Date updated)
Sets the last update date- Specified by:
setUpdatedDatein interfaceInteraction<ParticipantEvidence>- Parameters:
updated- : last update date
-
getCreatedDate
public Date getCreatedDate()
The creation date. It can be null if not relevant or not known.- Specified by:
getCreatedDatein interfaceInteraction<ParticipantEvidence>- Returns:
- the last update date
-
setCreatedDate
public void setCreatedDate(Date created)
Sets the created date- Specified by:
setCreatedDatein interfaceInteraction<ParticipantEvidence>- Parameters:
created- : created date
-
getInteractionType
public CvTerm getInteractionType()
The interaction type is a controlled vocabulary term. It can be null. Ex: direct interaction, association, ...- Specified by:
getInteractionTypein interfaceInteraction<ParticipantEvidence>- Returns:
- the interaction type
-
setInteractionType
public void setInteractionType(CvTerm term)
Sets the interaction type.- Specified by:
setInteractionTypein interfaceInteraction<ParticipantEvidence>- Parameters:
term- : interaction type
-
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
-
getXmlAvailability
public AbstractAvailability getXmlAvailability()
getXmlAvailability.
- Specified by:
getXmlAvailabilityin interfaceExtendedPsiXmlInteractionEvidence- Returns:
- a
AbstractAvailabilityobject.
-
setXmlAvailability
public void setXmlAvailability(AbstractAvailability availability)
setXmlAvailability.
- Specified by:
setXmlAvailabilityin interfaceExtendedPsiXmlInteractionEvidence- Parameters:
availability- aAbstractAvailabilityobject.
-
isModelled
public boolean isModelled()
isModelled.
- Specified by:
isModelledin interfaceExtendedPsiXmlInteractionEvidence- Returns:
- a boolean.
-
setModelled
public void setModelled(boolean modelled)
setModelled.
- Specified by:
setModelledin interfaceExtendedPsiXmlInteractionEvidence- Parameters:
modelled- a boolean.
-
getExperiments
public List<Experiment> getExperiments()
getExperiments.
- Specified by:
getExperimentsin interfaceExtendedPsiXmlInteractionEvidence- Returns:
- a
Listobject.
-
getOriginalExperiments
public List<ExtendedPsiXmlExperiment> getOriginalExperiments()
getOriginalExperiments.
- Specified by:
getOriginalExperimentsin interfaceExtendedPsiXmlInteractionEvidence- Returns:
- a
Listobject.
-
getImexId
public String getImexId()
IMEx identifier if the interaction has been curated following IMEx curation rules. It can be null if the interaction is not registered in IMEx central or does not follow the IMEx curation rules. This imex id should be a shortcut to the imex-primary Xref in the collection of xrefs. Ex: IM-123-2- Specified by:
getImexIdin interfaceInteractionEvidence- Returns:
- the IMEx identifier
-
assignImexId
public void assignImexId(String identifier)
Assign an IMEx id to an interaction. It will add the new imex-primary ref to the collection of xrefs- Specified by:
assignImexIdin interfaceInteractionEvidence- Parameters:
identifier- : the IMEx id from IMEx central
-
getExperiment
public Experiment getExperiment()
The experiment which determined the interaction. It can be null if the interaction evidence is detached from experiment.- Specified by:
getExperimentin interfaceInteractionEvidence- Returns:
- the experiment
-
setExperiment
public void setExperiment(Experiment experiment)
Sets the experiment for this interaction.- Specified by:
setExperimentin interfaceInteractionEvidence- Parameters:
experiment- : experiment
-
setExperimentAndAddInteractionEvidence
public void setExperimentAndAddInteractionEvidence(Experiment experiment)
Sets the experiment for this interaction and add the interaction to the list of interaction evidences If the given experiment is null, it will remove this interaction evidence from the previous experiment attached to this interaction- Specified by:
setExperimentAndAddInteractionEvidencein interfaceInteractionEvidence- Parameters:
experiment- : experiment
-
getVariableParameterValues
public Collection<VariableParameterValueSet> getVariableParameterValues()
The collection of variableParameterValueSet this interaction has been observed with. Each variableParameterValueSet contains a set of variableParameterValues which have been used together. This collection cannot be null. If the interactionEvidence does not have any variableParameterValueSet, this method should return an empty set.- Specified by:
getVariableParameterValuesin interfaceInteractionEvidence- Returns:
- the collection of variableParameterValueSet
-
getAvailability
public String getAvailability()
The availability for this interaction. By default it is null because freely available. Ex: copyrights, ...- Specified by:
getAvailabilityin interfaceInteractionEvidence- Returns:
- the availability
-
setAvailability
public void setAvailability(String availability)
Sets the availability.- Specified by:
setAvailabilityin interfaceInteractionEvidence- Parameters:
availability- : availability
-
getParameters
public Collection<Parameter> getParameters()
Collection of numerical parameters for this interaction. The set cannot be null. If the interaction does not have any parameters, the method should return an empty Collection. Ex: IC50, ...- Specified by:
getParametersin interfaceInteractionEvidence- Returns:
- the parameters
-
isInferred
public boolean isInferred()
Boolean value to know if the interaction is inferred from multiple experiments which on their own would not support the interaction. By default is false.- Specified by:
isInferredin interfaceInteractionEvidence- Returns:
- true if the interaction is inferred from multiple experiments which on their own would not support the interaction
-
setInferred
public void setInferred(boolean inferred)
Sets the inferred boolean value- Specified by:
setInferredin interfaceInteractionEvidence- Parameters:
inferred- : inferred boolean value
-
getConfidences
public Collection<Confidence> getConfidences()
The confidences in this interaction. The Collection cannot be null. If the interaction does not have any confidences, the method should return an empty Collection. Ex: author based scores, statistical confidences, ...- Specified by:
getConfidencesin interfaceInteractionEvidence- Returns:
- the confidences
-
isNegative
public boolean isNegative()
Boolean value to know if an interaction is negative. It is false by default (positive interaction by default)- Specified by:
isNegativein interfaceInteractionEvidence- Returns:
- true if the interaction is negative
-
setNegative
public void setNegative(boolean negative)
Sets the negative boolean value.- Specified by:
setNegativein interfaceInteractionEvidence- Parameters:
negative- : negative value
-
getWrappedInteraction
protected ExtendedPsiXmlInteractionEvidence getWrappedInteraction()
Getter for the field
wrappedInteraction.- Returns:
- a
ExtendedPsiXmlInteractionEvidenceobject.
-
-