Package psidev.psi.mi.jami.utils.clone
Class InteractorCloner
- java.lang.Object
-
- psidev.psi.mi.jami.utils.clone.InteractorCloner
-
public class InteractorCloner extends Object
Cloner for interactors- Since:
13/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description InteractorCloner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyAndOverrideBasicComplexPropertiesWithInteractionProperties(Interaction source, Complex target)
This method will copy basic properties from the Interaction source in the complex target.static void
copyAndOverrideBasicComplexPropertiesWithModelledInteractionProperties(ModelledInteraction source, Complex target)
This method will copy basic properties from the Interaction source in the complex target.static void
copyAndOverrideBasicInteractorPoolProperties(InteractorPool source, InteractorPool target)
copyAndOverrideBasicInteractorPoolPropertiesstatic void
copyAndOverrideBasicInteractorProperties(Interactor source, Interactor target)
This method will copy properties of interactor source in interactor target and will override all the other properties of Target interactor.static void
copyAndOverrideBasicPolymerProperties(Polymer source, Polymer target)
copyAndOverrideBasicPolymerPropertiesstatic void
copyAndOverrideComplexProperties(Complex source, Complex target, boolean createNewParticipant, boolean ignoreParticipants)
This method will copy properties of complex source in complex target and will override all the other properties of Target complex.
-
-
-
Method Detail
-
copyAndOverrideBasicInteractorProperties
public static void copyAndOverrideBasicInteractorProperties(Interactor source, Interactor target)
This method will copy properties of interactor source in interactor target and will override all the other properties of Target interactor.- Parameters:
source
- aInteractor
object.target
- aInteractor
object.
-
copyAndOverrideBasicPolymerProperties
public static void copyAndOverrideBasicPolymerProperties(Polymer source, Polymer target)
copyAndOverrideBasicPolymerProperties
-
copyAndOverrideBasicInteractorPoolProperties
public static void copyAndOverrideBasicInteractorPoolProperties(InteractorPool source, InteractorPool target)
copyAndOverrideBasicInteractorPoolProperties
- Parameters:
source
- aInteractorPool
object.target
- aInteractorPool
object.
-
copyAndOverrideComplexProperties
public static void copyAndOverrideComplexProperties(Complex source, Complex target, boolean createNewParticipant, boolean ignoreParticipants)
This method will copy properties of complex source in complex target and will override all the other properties of Target complex. This method does not copy the- Parameters:
source
- aComplex
object.target
- aComplex
object.createNewParticipant
- If true, this method will clone each participant from source instead of reusing the participant instances from source. It will then set the interactionEvidence of the cloned participants to targetignoreParticipants
- If true, this method will clone the interaction properties and ignore the participants of the source
-
copyAndOverrideBasicComplexPropertiesWithInteractionProperties
public static void copyAndOverrideBasicComplexPropertiesWithInteractionProperties(Interaction source, Complex target)
This method will copy basic properties from the Interaction source in the complex target. It will erase existing annotations, xrefs, checksums and identifiers This method does not copy the participants of the source- Parameters:
source
- aInteraction
object.target
- aComplex
object.
-
copyAndOverrideBasicComplexPropertiesWithModelledInteractionProperties
public static void copyAndOverrideBasicComplexPropertiesWithModelledInteractionProperties(ModelledInteraction source, Complex target)
This method will copy basic properties from the Interaction source in the complex target. This method does not copy the participants of the source- Parameters:
source
- aModelledInteraction
object.target
- aComplex
object.
-
-