Package psidev.psi.mi.jami.utils.clone
Class ParticipantCloner
- java.lang.Object
-
- psidev.psi.mi.jami.utils.clone.ParticipantCloner
-
public class ParticipantCloner extends Object
Utility class for cloning a participant- Since:
13/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ParticipantCloner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyAndOverrideBasicEntityProperties(Entity source, Entity target, boolean createNewFeature)copyAndOverrideBasicEntityPropertiesstatic voidcopyAndOverrideBasicParticipantProperties(Participant source, Participant target, boolean createNewFeature)This method will copy properties of participant source in participant target and will override all the other properties of Target participant.static voidcopyAndOverrideModelledParticipantProperties(ModelledParticipant source, ModelledParticipant target, boolean createNewFeature)This method will copy properties of modelled participant source in modelled participant target and will override all the other properties of Target modelled participant.static voidcopyAndOverrideParticipantEvidenceProperties(ParticipantEvidence source, ParticipantEvidence target, boolean createNewFeature)This method will copy properties of participant source in participant target and will override all the other properties of Target participant.
-
-
-
Method Detail
-
copyAndOverrideParticipantEvidenceProperties
public static void copyAndOverrideParticipantEvidenceProperties(ParticipantEvidence source, ParticipantEvidence target, boolean createNewFeature)
This method will copy properties of participant source in participant target and will override all the other properties of Target participant. This method will ignore interaction- Parameters:
source- aParticipantEvidenceobject.target- aParticipantEvidenceobject.createNewFeature- If true, this method will clone each feature from source instead of reusing the feature instances from source. It will then set the participantEvidence of the cloned features to target
-
copyAndOverrideModelledParticipantProperties
public static void copyAndOverrideModelledParticipantProperties(ModelledParticipant source, ModelledParticipant target, boolean createNewFeature)
This method will copy properties of modelled participant source in modelled participant target and will override all the other properties of Target modelled participant. This method will ignore interaction- Parameters:
source- aModelledParticipantobject.target- aModelledParticipantobject.createNewFeature- If true, this method will clone each feature from source instead of reusing the feature instances from source. It will then set the modelledParticipant of the cloned features to target
-
copyAndOverrideBasicParticipantProperties
public static void copyAndOverrideBasicParticipantProperties(Participant source, Participant target, boolean createNewFeature)
This method will copy properties of participant source in participant target and will override all the other properties of Target participant.- Parameters:
source- aParticipantobject.target- aParticipantobject.createNewFeature- If true, this method will clone each feature from source instead of reusing the feature instances from source.
-
-