/** * @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; }
/** * @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; }
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 boolean hasProfile() { if (this.profile == null) return false; for (UriType item : this.profile) if (!item.isEmpty()) return true; return false; }