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 voidcopyAndOverrideBasicComplexPropertiesWithInteractionProperties(Interaction source, Complex target)This method will copy basic properties from the Interaction source in the complex target.static voidcopyAndOverrideBasicComplexPropertiesWithModelledInteractionProperties(ModelledInteraction source, Complex target)This method will copy basic properties from the Interaction source in the complex target.static voidcopyAndOverrideBasicInteractorPoolProperties(InteractorPool source, InteractorPool target)copyAndOverrideBasicInteractorPoolPropertiesstatic voidcopyAndOverrideBasicInteractorProperties(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 voidcopyAndOverrideBasicPolymerProperties(Polymer source, Polymer target)copyAndOverrideBasicPolymerPropertiesstatic voidcopyAndOverrideComplexProperties(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- aInteractorobject.target- aInteractorobject.
-
copyAndOverrideBasicPolymerProperties
public static void copyAndOverrideBasicPolymerProperties(Polymer source, Polymer target)
copyAndOverrideBasicPolymerProperties
-
copyAndOverrideBasicInteractorPoolProperties
public static void copyAndOverrideBasicInteractorPoolProperties(InteractorPool source, InteractorPool target)
copyAndOverrideBasicInteractorPoolProperties
- Parameters:
source- aInteractorPoolobject.target- aInteractorPoolobject.
-
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- aComplexobject.target- aComplexobject.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- aInteractionobject.target- aComplexobject.
-
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- aModelledInteractionobject.target- aComplexobject.
-
-