Example #1
0
 public Group copy() {
   Group dst = new Group();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.type = type == null ? null : type.copy();
   dst.actual = actual == null ? null : actual.copy();
   dst.code = code == null ? null : code.copy();
   dst.name = name == null ? null : name.copy();
   dst.quantity = quantity == null ? null : quantity.copy();
   if (characteristic != null) {
     dst.characteristic = new ArrayList<GroupCharacteristicComponent>();
     for (GroupCharacteristicComponent i : characteristic) dst.characteristic.add(i.copy());
   }
   ;
   if (member != null) {
     dst.member = new ArrayList<GroupMemberComponent>();
     for (GroupMemberComponent i : member) dst.member.add(i.copy());
   }
   ;
   return dst;
 }
Example #2
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (identifier == null || identifier.isEmpty())
       && (type == null || type.isEmpty())
       && (actual == null || actual.isEmpty())
       && (code == null || code.isEmpty())
       && (name == null || name.isEmpty())
       && (quantity == null || quantity.isEmpty())
       && (characteristic == null || characteristic.isEmpty())
       && (member == null || member.isEmpty());
 }
Example #3
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (type == null || type.isEmpty())
       && (subtype == null || subtype.isEmpty())
       && (identifier == null || identifier.isEmpty())
       && (subject == null || subject.isEmpty())
       && (operator == null || operator.isEmpty())
       && (view == null || view.isEmpty())
       && (deviceName == null || deviceName.isEmpty())
       && (height == null || height.isEmpty())
       && (width == null || width.isEmpty())
       && (frames == null || frames.isEmpty())
       && (duration == null || duration.isEmpty())
       && (content == null || content.isEmpty());
 }
Example #4
0
 public Media copy() {
   Media dst = new Media();
   copyValues(dst);
   dst.type = type == null ? null : type.copy();
   dst.subtype = subtype == null ? null : subtype.copy();
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.subject = subject == null ? null : subject.copy();
   dst.operator = operator == null ? null : operator.copy();
   dst.view = view == null ? null : view.copy();
   dst.deviceName = deviceName == null ? null : deviceName.copy();
   dst.height = height == null ? null : height.copy();
   dst.width = width == null ? null : width.copy();
   dst.frames = frames == null ? null : frames.copy();
   dst.duration = duration == null ? null : duration.copy();
   dst.content = content == null ? null : content.copy();
   return dst;
 }