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 void
copyAndOverrideBasicEntityProperties(Entity source, Entity target, boolean createNewFeature)
copyAndOverrideBasicEntityPropertiesstatic 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.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.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.
-
-
-
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
- aParticipantEvidence
object.target
- aParticipantEvidence
object.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
- aModelledParticipant
object.target
- aModelledParticipant
object.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
- aParticipant
object.target
- aParticipant
object.createNewFeature
- If true, this method will clone each feature from source instead of reusing the feature instances from source.
-
-