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 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.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.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.
-
-
-
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
- aExperimentalParticipantCandidate
object.target
- aExperimentalParticipantCandidate
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 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
- aModelledParticipantCandidate
object.target
- aModelledParticipantCandidate
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
-
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
- aParticipantCandidate
object.target
- aParticipantCandidate
object.createNewFeature
- If true, this method will clone each feature from source instead of reusing the feature instances from source.
-
-