public SecurityEventSourceComponent copy(SecurityEvent e) { SecurityEventSourceComponent dst = e.new SecurityEventSourceComponent(); dst.site = site == null ? null : site.copy(); dst.identifier = identifier == null ? null : identifier.copy(); dst.type = new ArrayList<Coding>(); for (Coding i : type) dst.type.add(i.copy()); return dst; }
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; }