Class XmlBinaryInteractionFactory
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.factory.xml30.XmlBinaryInteractionFactory
-
- All Implemented Interfaces:
BinaryInteractionFactory
public class XmlBinaryInteractionFactory extends Object implements BinaryInteractionFactory
Xml extension of BinaryInteractionFactory for XML 3.0- Since:
16/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlBinaryInteractionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryInteraction
createBasicBinaryInteractionFrom(Interaction interaction, Participant p1, Participant p2, CvTerm expansionMethod)
Create a new BinaryInteraction object from an Interaction parent and two participantsBinaryInteractionEvidence
createBinaryInteractionEvidenceFrom(InteractionEvidence interaction, ParticipantEvidence p1, ParticipantEvidence p2, CvTerm expansionMethod)
Create a new BinaryInteractionEvidence object from an InteractionEvidence parent and two participants evidencesBinaryInteractionEvidence
createBinaryInteractionEvidenceWrapperFrom(InteractionEvidence interaction)
Creates a BinaryInteractionEvidence that wraps the given interactionBinaryInteraction
createBinaryInteractionWrapperFrom(Interaction interaction)
Creates a BinaryInteraction that wraps the given interactionModelledBinaryInteraction
createModelledBinaryInteractionFrom(ModelledInteraction interaction, ModelledParticipant p1, ModelledParticipant p2, CvTerm expansionMethod)
Create a new ModelledBinaryInteraction object from a ModelledInteraction parent and two modelled participantsModelledBinaryInteraction
createModelledBinaryInteractionWrapperFrom(ModelledInteraction interaction)
Creates a ModelledBinaryInteraction that wraps the given interactionBinaryInteractionEvidence
createSelfBinaryInteractionEvidenceFrom(InteractionEvidence interaction)
Creates a BinaryInteractionEvidence representing a self interactionBinaryInteraction
createSelfBinaryInteractionFrom(Interaction interaction)
Create a binary interaction representing a self interactionModelledBinaryInteraction
createSelfModelledBinaryInteractionFrom(ModelledInteraction interaction)
Creates a ModelledInteraction representing a self interactionBinaryInteraction
instantiateNewBinaryInteraction()
Instantiate a new BinaryInteractionXmlBinaryInteractionEvidence
instantiateNewBinaryInteractionEvidence()
Instantiate a new BinaryInteraction evidenceXmlModelledBinaryInteraction
instantiateNewModelledBinaryInteraction()
Instantiate a new modelled binary interaction
-
-
-
Method Detail
-
createSelfBinaryInteractionEvidenceFrom
public BinaryInteractionEvidence createSelfBinaryInteractionEvidenceFrom(InteractionEvidence interaction)
Creates a BinaryInteractionEvidence representing a self interaction- Specified by:
createSelfBinaryInteractionEvidenceFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interaction- Returns:
- the resulting self binary interaction
-
createBasicBinaryInteractionFrom
public BinaryInteraction createBasicBinaryInteractionFrom(Interaction interaction, Participant p1, Participant p2, CvTerm expansionMethod)
Create a new BinaryInteraction object from an Interaction parent and two participants- Specified by:
createBasicBinaryInteractionFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interactionp1
- : the first participantp2
- : the second participantexpansionMethod
- aCvTerm
object.- Returns:
- the new BinaryInteraction object
-
createBinaryInteractionEvidenceFrom
public BinaryInteractionEvidence createBinaryInteractionEvidenceFrom(InteractionEvidence interaction, ParticipantEvidence p1, ParticipantEvidence p2, CvTerm expansionMethod)
Create a new BinaryInteractionEvidence object from an InteractionEvidence parent and two participants evidences- Specified by:
createBinaryInteractionEvidenceFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interactionp1
- : the first participantp2
- : the second participantexpansionMethod
- : the expansion method- Returns:
- the new BinaryInteractionEvidence object
-
createSelfBinaryInteractionFrom
public BinaryInteraction createSelfBinaryInteractionFrom(Interaction interaction)
Create a binary interaction representing a self interaction- Specified by:
createSelfBinaryInteractionFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interaction- Returns:
- the resulting self binary interaction
-
createModelledBinaryInteractionFrom
public ModelledBinaryInteraction createModelledBinaryInteractionFrom(ModelledInteraction interaction, ModelledParticipant p1, ModelledParticipant p2, CvTerm expansionMethod)
Create a new ModelledBinaryInteraction object from a ModelledInteraction parent and two modelled participants- Specified by:
createModelledBinaryInteractionFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interactionp1
- : the first participantp2
- : the second participantexpansionMethod
- : the expansion method- Returns:
- the new ModelledBinaryInteraction object
-
createSelfModelledBinaryInteractionFrom
public ModelledBinaryInteraction createSelfModelledBinaryInteractionFrom(ModelledInteraction interaction)
Creates a ModelledInteraction representing a self interaction- Specified by:
createSelfModelledBinaryInteractionFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interaction- Returns:
- the resulting self binary interaction
-
createBinaryInteractionWrapperFrom
public BinaryInteraction createBinaryInteractionWrapperFrom(Interaction interaction)
Creates a BinaryInteraction that wraps the given interaction- Specified by:
createBinaryInteractionWrapperFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interaction- Returns:
- the resulting binary interaction wrapper
-
createBinaryInteractionEvidenceWrapperFrom
public BinaryInteractionEvidence createBinaryInteractionEvidenceWrapperFrom(InteractionEvidence interaction)
Creates a BinaryInteractionEvidence that wraps the given interaction- Specified by:
createBinaryInteractionEvidenceWrapperFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interaction- Returns:
- the resulting binary interaction wrapper
-
createModelledBinaryInteractionWrapperFrom
public ModelledBinaryInteraction createModelledBinaryInteractionWrapperFrom(ModelledInteraction interaction)
Creates a ModelledBinaryInteraction that wraps the given interaction- Specified by:
createModelledBinaryInteractionWrapperFrom
in interfaceBinaryInteractionFactory
- Parameters:
interaction
- : the original interaction- Returns:
- the resulting binary interaction wrapper
-
instantiateNewBinaryInteraction
public BinaryInteraction instantiateNewBinaryInteraction()
Instantiate a new BinaryInteraction- Specified by:
instantiateNewBinaryInteraction
in interfaceBinaryInteractionFactory
- Returns:
- the binary interaction instance
-
instantiateNewBinaryInteractionEvidence
public XmlBinaryInteractionEvidence instantiateNewBinaryInteractionEvidence()
Instantiate a new BinaryInteraction evidence- Specified by:
instantiateNewBinaryInteractionEvidence
in interfaceBinaryInteractionFactory
- Returns:
- the binary interaction instance
-
instantiateNewModelledBinaryInteraction
public XmlModelledBinaryInteraction instantiateNewModelledBinaryInteraction()
Instantiate a new modelled binary interaction- Specified by:
instantiateNewModelledBinaryInteraction
in interfaceBinaryInteractionFactory
- Returns:
- the binary interaction instance
-
-