public SecurityEvent copy() { SecurityEvent dst = new SecurityEvent(); dst.event = event == null ? null : event.copy(dst); dst.participant = new ArrayList<SecurityEventParticipantComponent>(); for (SecurityEventParticipantComponent i : participant) dst.participant.add(i.copy(dst)); dst.source = source == null ? null : source.copy(dst); dst.object = new ArrayList<SecurityEventObjectComponent>(); for (SecurityEventObjectComponent i : object) dst.object.add(i.copy(dst)); return dst; }
public SecurityEventParticipantComponent copy(SecurityEvent e) { SecurityEventParticipantComponent dst = e.new SecurityEventParticipantComponent(); dst.role = new ArrayList<CodeableConcept>(); for (CodeableConcept i : role) dst.role.add(i.copy()); dst.reference = reference == null ? null : reference.copy(); dst.userId = userId == null ? null : userId.copy(); dst.authId = authId == null ? null : authId.copy(); dst.name = name == null ? null : name.copy(); dst.requestor = requestor == null ? null : requestor.copy(); dst.media = media == null ? null : media.copy(); dst.network = network == null ? null : network.copy(e); return dst; }