Class 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 Detail

      • ParticipantCandidateCloner

        public ParticipantCandidateCloner()
    • 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 - a ExperimentalParticipantCandidate object.
        target - a ExperimentalParticipantCandidate 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 - a ModelledParticipantCandidate object.
        target - a ModelledParticipantCandidate 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 - a ParticipantCandidate object.
        target - a ParticipantCandidate object.
        createNewFeature - If true, this method will clone each feature from source instead of reusing the feature instances from source.