Class XmlBinaryInteractionWrapper
- java.lang.Object
- 
- psidev.psi.mi.jami.xml.model.extension.binary.XmlBinaryInteractionWrapper
 
- 
- All Implemented Interfaces:
- BinaryInteraction<Participant>,- FileSourceContext,- Interaction<Participant>,- NamedInteraction<Participant>,- ExtendedPsiXmlInteraction<Participant>,- PsiXmlInteraction<Participant>
 
 public class XmlBinaryInteractionWrapper extends Object implements BinaryInteraction<Participant>, FileSourceContext, ExtendedPsiXmlInteraction<Participant> Wrapper for ModelledBinaryInteraction- Since:
- 16/10/13 
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
 
- 
- 
Constructor SummaryConstructors Constructor Description XmlBinaryInteractionWrapper(ExtendedPsiXmlInteraction interaction)Constructor for XmlBinaryInteractionWrapper.XmlBinaryInteractionWrapper(ExtendedPsiXmlInteraction interaction, CvTerm complexExpansion)Constructor for XmlBinaryInteractionWrapper.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllParticipants(Collection<? extends Participant> participants)This method will add all the participant and set the interaction of the new participant to this current interactionbooleanaddParticipant(Participant part)This method will add the participant and set the interaction of the new participant to this current interactionCollection<Alias>getAliases()getAliases.Collection<Annotation>getAnnotations()The Collection of annotations describing the interaction.CvTermgetCausalRegulatoryMechanism()getCausalRegulatoryMechanism.Collection<Checksum>getChecksums()Set of checksums computed for this interaction..CvTermgetComplexExpansion()getComplexExpansion.DategetCreatedDate()The creation date.EntrygetEntry()getEntry.StringgetFullName()The full name of the interaction.intgetId()getId.Collection<Xref>getIdentifiers()The identifiers for an interaction.List<AbstractInferredInteraction>getInferredInteractions()getInferredInteractions.CvTermgetInteractionType()The interaction type is a controlled vocabulary term.List<CvTerm>getInteractionTypes()getInteractionTypes.ParticipantgetParticipantA()getParticipantA.ParticipantgetParticipantB()getParticipantB.Collection<Participant>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<Xref>getXrefs()The external cross references for an interaction.booleanisIntraMolecular()isIntraMolecular.booleanremoveAllParticipants(Collection<? extends Participant> participants)This method will remove the participant and set the interaction of the removed participant to null.booleanremoveParticipant(Participant part)This method will remove the participant and set the interaction of the new participant to nullvoidsetCausalRegulatoryMechanism(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.voidsetFullName(String name)Sets the full name of the interactionvoidsetId(int id)setId.voidsetInteractionType(CvTerm term)Sets the interaction type.voidsetIntraMolecular(boolean intra)setIntraMolecular.voidsetParticipantA(Participant participantA)Sets the first participant of this interactionvoidsetParticipantB(Participant participantB)Sets the second participant of this interactionvoidsetRigid(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 dateStringtoString()toString
 
- 
- 
- 
Constructor Detail- 
XmlBinaryInteractionWrapperpublic XmlBinaryInteractionWrapper(ExtendedPsiXmlInteraction interaction) Constructor for XmlBinaryInteractionWrapper. - Parameters:
- interaction- a- ExtendedPsiXmlInteractionobject.
 
 - 
XmlBinaryInteractionWrapperpublic XmlBinaryInteractionWrapper(ExtendedPsiXmlInteraction interaction, CvTerm complexExpansion) Constructor for XmlBinaryInteractionWrapper. - Parameters:
- interaction- a- ExtendedPsiXmlInteractionobject.
- complexExpansion- a- CvTermobject.
 
 
- 
 - 
Method Detail- 
getParticipantApublic Participant getParticipantA() getParticipantA. - Specified by:
- getParticipantAin interface- BinaryInteraction<Participant>
- Returns:
- a Participantobject.
 
 - 
getParticipantBpublic Participant getParticipantB() getParticipantB. - Specified by:
- getParticipantBin interface- BinaryInteraction<Participant>
- Returns:
- a Participantobject.
 
 - 
setParticipantApublic void setParticipantA(Participant participantA) Sets the first participant of this interaction- Specified by:
- setParticipantAin interface- BinaryInteraction<Participant>
- Parameters:
- participantA- : the first participant
 
 - 
setParticipantBpublic void setParticipantB(Participant participantB) Sets the second participant of this interaction- Specified by:
- setParticipantBin interface- BinaryInteraction<Participant>
- Parameters:
- participantB- : the second participant
 
 - 
getComplexExpansionpublic CvTerm getComplexExpansion() getComplexExpansion. - Specified by:
- getComplexExpansionin interface- BinaryInteraction<Participant>
- Returns:
- a CvTermobject.
 
 - 
setComplexExpansionpublic void setComplexExpansion(CvTerm expansion) Sets the complex expansion of this binary interaction- Specified by:
- setComplexExpansionin interface- BinaryInteraction<Participant>
- Parameters:
- expansion- : the complex expansion
 
 - 
getCausalRegulatoryMechanismpublic CvTerm getCausalRegulatoryMechanism() getCausalRegulatoryMechanism. - Specified by:
- getCausalRegulatoryMechanismin interface- BinaryInteraction<Participant>
- Returns:
- a CvTermobject.
 
 - 
setCausalRegulatoryMechanismpublic void setCausalRegulatoryMechanism(CvTerm causalRegulatoryMechanism) Sets the causal regulatory mechanism of this binary interaction- Specified by:
- setCausalRegulatoryMechanismin interface- BinaryInteraction<Participant>
- Parameters:
- causalRegulatoryMechanism- : the complex regulatory mechanism CvTerm
 
 - 
getParticipantspublic Collection<Participant> 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 interface- Interaction<Participant>
- Returns:
- the particiants
 
 - 
addParticipantpublic boolean addParticipant(Participant 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 interface- Interaction<Participant>
- Parameters:
- part- : participant to add
- Returns:
- true if participant is added to the list of participants
 
 - 
removeParticipantpublic boolean removeParticipant(Participant 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 interface- Interaction<Participant>
- Parameters:
- part- : participant to remove
- Returns:
- true if participant is removed from the list of participants
 
 - 
addAllParticipantspublic boolean addAllParticipants(Collection<? extends Participant> 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 interface- Interaction<Participant>
- Parameters:
- participants- : participants to add
- Returns:
- true if participant are added to the list of participants
 
 - 
removeAllParticipantspublic boolean removeAllParticipants(Collection<? extends Participant> participants) This method will remove the participant and set the interaction of the removed participant to null.- Specified by:
- removeAllParticipantsin interface- Interaction<Participant>
- Parameters:
- participants- : participants to remove
- Returns:
- true if participant are removed from the list of participants
 
 - 
getFullNamepublic String getFullName() The full name of the interaction. It can be null- Specified by:
- getFullNamein interface- NamedInteraction<Participant>
- Returns:
- the full name
 
 - 
setFullNamepublic void setFullName(String name) Sets the full name of the interaction- Specified by:
- setFullNamein interface- NamedInteraction<Participant>
- Parameters:
- name- : full name
 
 - 
getAliasespublic Collection<Alias> getAliases() getAliases. - Specified by:
- getAliasesin interface- ExtendedPsiXmlInteraction<Participant>
- Specified by:
- getAliasesin interface- NamedInteraction<Participant>
- Specified by:
- getAliasesin interface- PsiXmlInteraction<Participant>
- Returns:
- a Collectionobject.
 
 - 
getInteractionTypespublic List<CvTerm> getInteractionTypes() getInteractionTypes. - Specified by:
- getInteractionTypesin interface- ExtendedPsiXmlInteraction<Participant>
- Returns:
- a Listobject.
 
 - 
getEntrypublic Entry getEntry() getEntry. - Specified by:
- getEntryin interface- PsiXmlInteraction<Participant>
- Returns:
- a Entryobject.
 
 - 
setEntrypublic void setEntry(Entry entry) setEntry. - Specified by:
- setEntryin interface- PsiXmlInteraction<Participant>
- Parameters:
- entry- a- Entryobject.
 
 - 
getInferredInteractionspublic List<AbstractInferredInteraction> getInferredInteractions() getInferredInteractions. - Specified by:
- getInferredInteractionsin interface- ExtendedPsiXmlInteraction<Participant>
- Returns:
- a Listobject.
 
 - 
getIdpublic int getId() getId. - Specified by:
- getIdin interface- PsiXmlInteraction<Participant>
- Returns:
- a int.
 
 - 
setIdpublic void setId(int id) setId. - Specified by:
- setIdin interface- PsiXmlInteraction<Participant>
- Parameters:
- id- a int.
 
 - 
isIntraMolecularpublic boolean isIntraMolecular() isIntraMolecular. - Specified by:
- isIntraMolecularin interface- PsiXmlInteraction<Participant>
- Returns:
- a boolean.
 
 - 
setIntraMolecularpublic void setIntraMolecular(boolean intra) setIntraMolecular. - Specified by:
- setIntraMolecularin interface- PsiXmlInteraction<Participant>
- Parameters:
- intra- a boolean.
 
 - 
getSourceLocatorpublic FileSourceLocator getSourceLocator() The locator of a position in a file. It can be null- Specified by:
- getSourceLocatorin interface- FileSourceContext
- Returns:
- the file locator
 
 - 
setSourceLocatorpublic void setSourceLocator(FileSourceLocator locator) Sets the source locator- Specified by:
- setSourceLocatorin interface- FileSourceContext
- Parameters:
- locator- : the file locator
 
 - 
getShortNamepublic String getShortName() The short name of the interaction. It can be null. Ex: foxc1-flna, ...- Specified by:
- getShortNamein interface- Interaction<Participant>
- Returns:
- short name of the interaction
 
 - 
setShortNamepublic void setShortName(String name) Sets the short name of the interaction- Specified by:
- setShortNamein interface- Interaction<Participant>
- Parameters:
- name- : short name
 
 - 
getRigidpublic 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 interface- Interaction<Participant>
- Returns:
- the rigid
 
 - 
setRigidpublic 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 interface- Interaction<Participant>
- Parameters:
- rigid- : the rigid
 
 - 
getIdentifierspublic 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 interface- Interaction<Participant>
- Returns:
- the xrefs
 
 - 
getXrefspublic 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 interface- Interaction<Participant>
- Returns:
- the xrefs
 
 - 
getChecksumspublic 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 interface- Interaction<Participant>
- Returns:
- the set of checksums
 
 - 
getAnnotationspublic 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 interface- Interaction<Participant>
- Returns:
- the annotations
 
 - 
getUpdatedDatepublic Date getUpdatedDate() The last update date. It can be null if not relevant or not known.- Specified by:
- getUpdatedDatein interface- Interaction<Participant>
- Returns:
- the last update date
 
 - 
setUpdatedDatepublic void setUpdatedDate(Date updated) Sets the last update date- Specified by:
- setUpdatedDatein interface- Interaction<Participant>
- Parameters:
- updated- : last update date
 
 - 
getCreatedDatepublic Date getCreatedDate() The creation date. It can be null if not relevant or not known.- Specified by:
- getCreatedDatein interface- Interaction<Participant>
- Returns:
- the last update date
 
 - 
setCreatedDatepublic void setCreatedDate(Date created) Sets the created date- Specified by:
- setCreatedDatein interface- Interaction<Participant>
- Parameters:
- created- : created date
 
 - 
getInteractionTypepublic CvTerm getInteractionType() The interaction type is a controlled vocabulary term. It can be null. Ex: direct interaction, association, ...- Specified by:
- getInteractionTypein interface- Interaction<Participant>
- Returns:
- the interaction type
 
 - 
setInteractionTypepublic void setInteractionType(CvTerm term) Sets the interaction type.- Specified by:
- setInteractionTypein interface- Interaction<Participant>
- Parameters:
- term- : interaction type
 
 - 
toStringpublic String toString() toString - Specified by:
- toStringin interface- FileSourceContext
- Overrides:
- toStringin class- Object
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
 
 
- 
 
-