Package psidev.psi.mi.jami.utils.clone
Class ParticipantCandidateCloner
- java.lang.Object
-
- psidev.psi.mi.jami.utils.clone.ParticipantCandidateCloner
-
public class ParticipantCandidateCloner extends Object
Utility class for cloning a participant candidate- Since:
13/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ParticipantCandidateCloner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyAndOverrideBasicCandidateProperties(ParticipantCandidate source, ParticipantCandidate target, boolean createNewFeature)This method will copy properties of participant candidate source in participant candidate target and will override all the other properties of Target participant.static voidcopyAndOverrideExperimentalCandidateProperties(ExperimentalParticipantCandidate source, ExperimentalParticipantCandidate target, boolean createNewFeature)This method will copy properties of participant candidate source to participant candidate target and will override all the other properties of Target participant candidate.static voidcopyAndOverrideModelledPCandidateProperties(ModelledParticipantCandidate source, ModelledParticipantCandidate target, boolean createNewFeature)This method will copy properties of modelled participant candidate source in modelled participant candidate target and will override all the other properties of Target modelled participant.
-
-
-
Method Detail
-
copyAndOverrideExperimentalCandidateProperties
public static void copyAndOverrideExperimentalCandidateProperties(ExperimentalParticipantCandidate source, ExperimentalParticipantCandidate target, boolean createNewFeature)
This method will copy properties of participant candidate source to participant candidate target and will override all the other properties of Target participant candidate. This method will ignore interaction- Parameters:
source- aExperimentalParticipantCandidateobject.target- aExperimentalParticipantCandidateobject.createNewFeature- If true, this method will clone each feature from source instead of reusing the feature instances from source. It will then set the experimental entity of the cloned features to target
-
copyAndOverrideModelledPCandidateProperties
public static void copyAndOverrideModelledPCandidateProperties(ModelledParticipantCandidate source, ModelledParticipantCandidate target, boolean createNewFeature)
This method will copy properties of modelled participant candidate source in modelled participant candidate target and will override all the other properties of Target modelled participant. This method will ignore interaction- Parameters:
source- aModelledParticipantCandidateobject.target- aModelledParticipantCandidateobject.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
-
copyAndOverrideBasicCandidateProperties
public static void copyAndOverrideBasicCandidateProperties(ParticipantCandidate source, ParticipantCandidate target, boolean createNewFeature)
This method will copy properties of participant candidate source in participant candidate target and will override all the other properties of Target participant.- Parameters:
source- aParticipantCandidateobject.target- aParticipantCandidateobject.createNewFeature- If true, this method will clone each feature from source instead of reusing the feature instances from source.
-
-