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

      • ParticipantCloner

        public ParticipantCloner()
    • 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 - a ParticipantEvidence object.
        target - a ParticipantEvidence 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 - a ModelledParticipant object.
        target - a ModelledParticipant 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 - a Participant object.
        target - a Participant object.
        createNewFeature - If true, this method will clone each feature from source instead of reusing the feature instances from source.
      • copyAndOverrideBasicEntityProperties

        public static void copyAndOverrideBasicEntityProperties​(Entity source,
                                                                Entity target,
                                                                boolean createNewFeature)

        copyAndOverrideBasicEntityProperties

        Parameters:
        source - a Entity object.
        target - a Entity object.
        createNewFeature - a boolean.