/** * @param value {@link #profile} (A list of profiles (references to [[[StructureDefinition]]] * resources) that this resource claims to conform to. The URL is a reference to * [[[StructureDefinition.url]]].) */ public boolean hasProfile(String value) { if (this.profile == null) return false; for (UriType v : this.profile) if (v.equals(value)) // uri return true; return false; }
/** * @param value {@link #profile} (A list of profiles (references to [[[StructureDefinition]]] * resources) that this resource claims to conform to. The URL is a reference to * [[[StructureDefinition.url]]].) */ public Meta addProfile(String value) { // 1 UriType t = new UriType(); t.setValue(value); if (this.profile == null) this.profile = new ArrayList<UriType>(); this.profile.add(t); return this; }
public Extension copy() { Extension dst = new Extension(); copyValues(dst); dst.url = url == null ? null : url.copy(); dst.value = value == null ? null : value.copy(); return dst; }
public boolean isEmpty() { return super.isEmpty() && (value == null || value.isEmpty()) && (comparator == null || comparator.isEmpty()) && (units == null || units.isEmpty()) && (system == null || system.isEmpty()) && (code == null || code.isEmpty()); }
public boolean isEmpty() { return super.isEmpty() && (system == null || system.isEmpty()) && (version == null || version.isEmpty()) && (code == null || code.isEmpty()) && (display == null || display.isEmpty()) && (userSelected == null || userSelected.isEmpty()); }
public Quantity copy() { Quantity dst = new Quantity(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
public Coding copy() { Coding dst = new Coding(); copyValues(dst); dst.system = system == null ? null : system.copy(); dst.version = version == null ? null : version.copy(); dst.code = code == null ? null : code.copy(); dst.display = display == null ? null : display.copy(); dst.userSelected = userSelected == null ? null : userSelected.copy(); return dst; }
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()); }
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; }
public Meta copy() { Meta dst = new Meta(); copyValues(dst); dst.versionId = versionId == null ? null : versionId.copy(); dst.lastUpdated = lastUpdated == null ? null : lastUpdated.copy(); if (profile != null) { dst.profile = new ArrayList<UriType>(); for (UriType i : profile) dst.profile.add(i.copy()); } ; if (security != null) { dst.security = new ArrayList<Coding>(); for (Coding i : security) dst.security.add(i.copy()); } ; if (tag != null) { dst.tag = new ArrayList<Coding>(); for (Coding i : tag) dst.tag.add(i.copy()); } ; return dst; }
public static UriType newUri(String value) throws URISyntaxException { if (value == null) return null; UriType res = new UriType(); res.setValue(value); return res; }
public boolean isEmpty() { return super.isEmpty() && (url == null || url.isEmpty()) && (value == null || value.isEmpty()); }
public boolean hasProfile() { if (this.profile == null) return false; for (UriType item : this.profile) if (!item.isEmpty()) return true; return false; }