Пример #1
0
 public SpecimenSourceComponent copy(Specimen e) {
   SpecimenSourceComponent dst = e.new SpecimenSourceComponent();
   dst.relationship = relationship == null ? null : relationship.copy();
   dst.target = new ArrayList<ResourceReference>();
   for (ResourceReference i : target) dst.target.add(i.copy());
   return dst;
 }
Пример #2
0
 public Specimen copy() {
   Specimen dst = new Specimen();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.type = type == null ? null : type.copy();
   dst.source = new ArrayList<SpecimenSourceComponent>();
   for (SpecimenSourceComponent i : source) dst.source.add(i.copy(dst));
   dst.subject = subject == null ? null : subject.copy();
   dst.accessionIdentifier = new ArrayList<Identifier>();
   for (Identifier i : accessionIdentifier) dst.accessionIdentifier.add(i.copy());
   dst.collection = collection == null ? null : collection.copy(dst);
   return dst;
 }