Exemple #1
0
 public DeviceIdentityComponent copy(Device e) {
   DeviceIdentityComponent dst = e.new DeviceIdentityComponent();
   dst.gtin = gtin == null ? null : gtin.copy();
   dst.lot = lot == null ? null : lot.copy();
   dst.serialNumber = serialNumber == null ? null : serialNumber.copy();
   return dst;
 }
Exemple #2
0
 public Device copy() {
   Device dst = new Device();
   dst.type = type == null ? null : type.copy();
   dst.manufacturer = manufacturer == null ? null : manufacturer.copy();
   dst.model = model == null ? null : model.copy();
   dst.version = version == null ? null : version.copy();
   dst.expiry = expiry == null ? null : expiry.copy();
   dst.identity = identity == null ? null : identity.copy(dst);
   dst.owner = owner == null ? null : owner.copy();
   dst.assignedId = new ArrayList<Identifier>();
   for (Identifier i : assignedId) dst.assignedId.add(i.copy());
   dst.location = location == null ? null : location.copy();
   dst.patient = patient == null ? null : patient.copy();
   dst.contact = new ArrayList<Contact>();
   for (Contact i : contact) dst.contact.add(i.copy());
   dst.url = url == null ? null : url.copy();
   return dst;
 }