예제 #1
0
파일: Group.java 프로젝트: cotsog/fhir-svn
 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;
 }
예제 #2
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (contentType == null || contentType.isEmpty())
       && (language == null || language.isEmpty())
       && (data == null || data.isEmpty())
       && (url == null || url.isEmpty())
       && (size == null || size.isEmpty())
       && (hash == null || hash.isEmpty())
       && (title == null || title.isEmpty())
       && (creation == null || creation.isEmpty());
 }
예제 #3
0
파일: Group.java 프로젝트: cotsog/fhir-svn
 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());
 }
예제 #4
0
 public Attachment copy() {
   Attachment dst = new Attachment();
   copyValues(dst);
   dst.contentType = contentType == null ? null : contentType.copy();
   dst.language = language == null ? null : language.copy();
   dst.data = data == null ? null : data.copy();
   dst.url = url == null ? null : url.copy();
   dst.size = size == null ? null : size.copy();
   dst.hash = hash == null ? null : hash.copy();
   dst.title = title == null ? null : title.copy();
   dst.creation = creation == null ? null : creation.copy();
   return dst;
 }
예제 #5
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());
 }
예제 #6
0
  /** Tests {@link Unsigned4BitType#equals(Object)}. */
  @Test
  public void testEquals() {
    final Unsigned4BitType b = new Unsigned4BitType(13l);

    // non-matching types and values
    final UnsignedIntType i = new UnsignedIntType(2l);
    assertFalse(b.equals(i));
    assertFalse(i.equals(b));

    // non-matching types
    final UnsignedIntType i2 = new UnsignedIntType(13l);
    assertFalse(b.equals(i2));
    assertFalse(i2.equals(b));

    // non-matching values
    final Unsigned4BitType i3 = new Unsigned4BitType(2l);
    assertFalse(b.equals(i3));
    assertFalse(i3.equals(b));

    // matching type and value
    final Unsigned4BitType i4 = new Unsigned4BitType(13l);
    assertTrue(b.equals(i4));
    assertTrue(i4.equals(b));
  }
예제 #7
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;
 }