public ImplementationGuideGlobalComponent addGlobal() { //3 ImplementationGuideGlobalComponent t = new ImplementationGuideGlobalComponent(); if (this.global == null) this.global = new ArrayList<ImplementationGuideGlobalComponent>(); this.global.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = castToCode(value); // CodeType } else if (name.equals("profile")) { this.profile = castToReference(value); // Reference } else return super.setProperty(name, value); return value; }
dst.global = new ArrayList<ImplementationGuideGlobalComponent>(); for (ImplementationGuideGlobalComponent i : global) dst.global.add(i.copy()); }; if (binary != null) {
public org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
public static org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getTypeElement(); case -309425751: return getProfile(); default: return super.makeProperty(hash, name); } }
public ImplementationGuideGlobalComponent copy() { ImplementationGuideGlobalComponent dst = new ImplementationGuideGlobalComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.profile = profile == null ? null : profile.copy(); return dst; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3575610: // type this.type = castToCode(value); // CodeType return value; case -309425751: // profile this.profile = castToReference(value); // Reference return value; default: return super.setProperty(hash, name, value); } }
public org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
public boolean hasGlobal() { if (this.global == null) return false; for (ImplementationGuideGlobalComponent item : this.global) if (!item.isEmpty()) return true; return false; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof ImplementationGuideGlobalComponent)) return false; ImplementationGuideGlobalComponent o = (ImplementationGuideGlobalComponent) other_; return compareValues(type, o.type, true); }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof ImplementationGuideGlobalComponent)) return false; ImplementationGuideGlobalComponent o = (ImplementationGuideGlobalComponent) other_; return compareDeep(type, o.type, true) && compareDeep(profile, o.profile, true); }
public static org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
public org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }
public org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent tgt = new org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuideGlobalComponent(); copyElement(src, tgt); tgt.setType(src.getType()); tgt.setProfile(convertReference(src.getProfile())); return tgt; }