this.page = new ImplementationGuidePageComponent(); return this.page;
@Override public Base addChild(String name) throws FHIRException { if (name.equals("source")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); } else if (name.equals("title")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title"); } else if (name.equals("kind")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.kind"); } else if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); } else if (name.equals("package")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.package"); } else if (name.equals("format")) { throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.format"); } else if (name.equals("page")) { return addPage(); } else return super.addChild(name); }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -896505829: // source this.source = castToUri(value); // UriType return value; case 110371416: // title this.title = castToString(value); // StringType return value; case 3292052: // kind value = new GuidePageKindEnumFactory().fromType(castToCode(value)); this.kind = (Enumeration) value; // Enumeration<GuidePageKind> return value; case 3575610: // type this.getType().add(castToCode(value)); // CodeType return value; case -807062458: // package this.getPackage().add(castToString(value)); // StringType return value; case -1268779017: // format this.format = castToCode(value); // CodeType return value; case 3433103: // page this.getPage().add((ImplementationGuidePageComponent) value); // ImplementationGuidePageComponent return value; default: return super.setProperty(hash, name, value); } }
public ImplementationGuidePageComponent copy() { ImplementationGuidePageComponent dst = new ImplementationGuidePageComponent(); copyValues(dst); dst.source = source == null ? null : source.copy(); dst.title = title == null ? null : title.copy(); dst.kind = kind == null ? null : kind.copy(); if (type != null) { dst.type = new ArrayList<CodeType>(); for (CodeType i : type) dst.type.add(i.copy()); }; if (package_ != null) { dst.package_ = new ArrayList<StringType>(); for (StringType i : package_) dst.package_.add(i.copy()); }; dst.format = format == null ? null : format.copy(); if (page != null) { dst.page = new ArrayList<ImplementationGuidePageComponent>(); for (ImplementationGuidePageComponent i : page) dst.page.add(i.copy()); }; return dst; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("source")) { this.source = castToUri(value); // UriType } else if (name.equals("title")) { this.title = castToString(value); // StringType } else if (name.equals("kind")) { value = new GuidePageKindEnumFactory().fromType(castToCode(value)); this.kind = (Enumeration) value; // Enumeration<GuidePageKind> } else if (name.equals("type")) { this.getType().add(castToCode(value)); } else if (name.equals("package")) { this.getPackage().add(castToString(value)); } else if (name.equals("format")) { this.format = castToCode(value); // CodeType } else if (name.equals("page")) { this.getPage().add((ImplementationGuidePageComponent) value); } else return super.setProperty(name, value); return value; }
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setName(src.getTitle()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); if (src.hasFormat()) tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public static org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); if (src.hasFormat()) tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setName(src.getTitle()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.instance.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.instance.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); tgt.setFormat(src.getFormat()); for (org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public boolean hasPage() { return this.page != null && !this.page.isEmpty(); }
public boolean hasPage() { if (this.page == null) return false; for (ImplementationGuidePageComponent item : this.page) if (!item.isEmpty()) return true; return false; }
/** * @return {@link #page} (A page / section in the implementation guide. The root page is the implementation guide home page.) */ public ImplementationGuidePageComponent getPage() { if (this.page == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImplementationGuide.page"); else if (Configuration.doAutoCreate()) this.page = new ImplementationGuidePageComponent(); // cc return this.page; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -896505829: return getSourceElement(); case 110371416: return getTitleElement(); case 3292052: return getKindElement(); case 3575610: return addTypeElement(); case -807062458: return addPackageElement(); case -1268779017: return getFormatElement(); case 3433103: return addPage(); default: return super.makeProperty(hash, name); } }
public ImplementationGuidePageComponent addPage() { //3 ImplementationGuidePageComponent t = new ImplementationGuidePageComponent(); if (this.page == null) this.page = new ArrayList<ImplementationGuidePageComponent>(); this.page.add(t); return t; }
public static org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu2016may.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); if (src.hasFormat()) tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setName(src.getTitle()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); if (src.hasFormat()) tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setTitle(src.getName()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.instance.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.instance.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); tgt.setFormat(src.getFormat()); for (org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent convertImplementationGuidePageComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent tgt = new org.hl7.fhir.instance.model.ImplementationGuide.ImplementationGuidePageComponent(); copyElement(src, tgt); tgt.setSource(src.getSource()); tgt.setName(src.getTitle()); tgt.setKind(convertGuidePageKind(src.getKind())); for (org.hl7.fhir.dstu3.model.CodeType t : src.getType()) tgt.addType(t.getValue()); for (org.hl7.fhir.dstu3.model.StringType t : src.getPackage()) tgt.addPackage(t.getValue()); tgt.setFormat(src.getFormat()); for (org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePageComponent t : src.getPage()) tgt.addPage(convertImplementationGuidePageComponent(t)); return tgt; }