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; }
public GroupMemberComponent copy() { GroupMemberComponent dst = new GroupMemberComponent(); copyValues(dst); dst.entity = entity == null ? null : entity.copy(); dst.period = period == null ? null : period.copy(); dst.inactive = inactive == null ? null : inactive.copy(); return dst; }
public boolean hasMember() { if (this.member == null) return false; for (GroupMemberComponent item : this.member) if (!item.isEmpty()) return true; return false; }