Exemplo n.º 1
0
 /**
  * @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;
 }
Exemplo n.º 2
0
 /**
  * @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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 public boolean hasProfile() {
   if (this.profile == null) return false;
   for (UriType item : this.profile) if (!item.isEmpty()) return true;
   return false;
 }