@Override public Base addChild(String name) throws FHIRException { if (name.equals("operation")) { this.operation = new SetupActionOperationComponent(); return this.operation; } else if (name.equals("assert")) { this.assert_ = new SetupActionAssertComponent(); return this.assert_; } else return super.addChild(name); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = castToCoding(value); // Coding } else if (name.equals("resource")) { this.resource = castToCode(value); // CodeType } else if (name.equals("label")) { this.label = castToString(value); // StringType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("accept")) { this.accept = castToCode(value); // CodeType } else if (name.equals("contentType")) { this.contentType = castToCode(value); // CodeType } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("encodeRequestUrl")) { this.encodeRequestUrl = castToBoolean(value); // BooleanType } else if (name.equals("method")) { value = new TestScriptRequestMethodCodeEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> } else if (name.equals("origin")) { this.origin = castToInteger(value); // IntegerType } else if (name.equals("params")) { this.params = castToString(value); // StringType } else if (name.equals("requestHeader")) { this.getRequestHeader().add((SetupActionOperationRequestHeaderComponent) value); } else if (name.equals("requestId")) { this.requestId = castToId(value); // IdType } else if (name.equals("responseId")) {
switch (hash) { case 3575610: // type this.type = castToCoding(value); // Coding return value; case -341064690: // resource this.resource = castToCode(value); // CodeType return value; case 102727412: // label this.label = castToString(value); // StringType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1423461112: // accept this.accept = castToCode(value); // CodeType return value; case -389131437: // contentType this.contentType = castToCode(value); // CodeType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case -1760554218: // encodeRequestUrl this.encodeRequestUrl = castToBoolean(value); // BooleanType return value; case -1077554975: // method value = new TestScriptRequestMethodCodeEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> return value;
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = castToCoding(value); // Coding } else if (name.equals("resource")) { this.resource = castToCode(value); // CodeType } else if (name.equals("label")) { this.label = castToString(value); // StringType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("accept")) { this.accept = castToCode(value); // CodeType } else if (name.equals("contentType")) { this.contentType = castToCode(value); // CodeType } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("encodeRequestUrl")) { this.encodeRequestUrl = castToBoolean(value); // BooleanType } else if (name.equals("method")) { value = new TestScriptRequestMethodCodeEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<TestScriptRequestMethodCode> } else if (name.equals("origin")) { this.origin = castToInteger(value); // IntegerType } else if (name.equals("params")) { this.params = castToString(value); // StringType } else if (name.equals("requestHeader")) { this.getRequestHeader().add((SetupActionOperationRequestHeaderComponent) value); } else if (name.equals("requestId")) { this.requestId = castToId(value); // IdType } else if (name.equals("responseId")) {
public SetupActionOperationComponent copy() { SetupActionOperationComponent dst = new SetupActionOperationComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.resource = resource == null ? null : resource.copy(); dst.label = label == null ? null : label.copy(); dst.description = description == null ? null : description.copy(); dst.accept = accept == null ? null : accept.copy(); dst.contentType = contentType == null ? null : contentType.copy(); dst.destination = destination == null ? null : destination.copy(); dst.encodeRequestUrl = encodeRequestUrl == null ? null : encodeRequestUrl.copy(); dst.method = method == null ? null : method.copy(); dst.origin = origin == null ? null : origin.copy(); dst.params = params == null ? null : params.copy(); if (requestHeader != null) { dst.requestHeader = new ArrayList<SetupActionOperationRequestHeaderComponent>(); for (SetupActionOperationRequestHeaderComponent i : requestHeader) dst.requestHeader.add(i.copy()); }; dst.requestId = requestId == null ? null : requestId.copy(); dst.responseId = responseId == null ? null : responseId.copy(); dst.sourceId = sourceId == null ? null : sourceId.copy(); dst.targetId = targetId == null ? null : targetId.copy(); dst.url = url == null ? null : url.copy(); return dst; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); case -341064690: return getResourceElement(); case 102727412: return getLabelElement(); case -1724546052: return getDescriptionElement(); case -1423461112: return getAcceptElement(); case -389131437: return getContentTypeElement(); case -1429847026: return getDestinationElement(); case -1760554218: return getEncodeRequestUrlElement(); case -1077554975: return getMethodElement(); case -1008619738: return getOriginElement(); case -995427962: return getParamsElement(); case 1074158076: return addRequestHeader(); case 693933066: return getRequestIdElement(); case -633138884: return getResponseIdElement(); case 1746327190: return getSourceIdElement(); case -441951604: return getTargetIdElement(); case 116079: return getUrlElement(); default: return super.makeProperty(hash, name); } }
public org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent tgt = new org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent(); copyElement(src, tgt); tgt.setType(convertCoding(src.getType())); tgt.setResource(src.getResource()); tgt.setLabel(src.getLabel()); tgt.setDescription(src.getDescription()); tgt.setAccept(convertContentType(src.getAccept())); tgt.setContentType(convertContentType(src.getContentType())); tgt.setDestination(src.getDestination()); tgt.setEncodeRequestUrl(src.getEncodeRequestUrl()); tgt.setParams(src.getParams()); for (org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t)); tgt.setResponseId(src.getResponseId()); tgt.setSourceId(src.getSourceId()); tgt.setTargetId(src.getTargetId()); tgt.setUrl(src.getUrl()); return tgt; }
public org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent convertSetupActionOperationComponent(org.hl7.fhir.r4.model.TestScript.SetupActionOperationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptSetupActionOperationComponent(); copyElement(src, tgt); tgt.setType(convertCoding(src.getType())); tgt.setResource(src.getResource()); tgt.setLabel(src.getLabel()); tgt.setDescription(src.getDescription()); tgt.setAccept(convertContentType(src.getAccept())); tgt.setContentType(convertContentType(src.getContentType())); tgt.setDestination(src.getDestination()); tgt.setEncodeRequestUrl(src.getEncodeRequestUrl()); tgt.setParams(src.getParams()); for (org.hl7.fhir.r4.model.TestScript.SetupActionOperationRequestHeaderComponent t : src.getRequestHeader()) tgt.addRequestHeader(convertSetupActionOperationRequestHeaderComponent(t)); tgt.setResponseId(src.getResponseId()); tgt.setSourceId(src.getSourceId()); tgt.setTargetId(src.getTargetId()); tgt.setUrl(src.getUrl()); return tgt; }
public boolean hasOperation() { return this.operation != null && !this.operation.isEmpty(); }
public boolean hasOperation() { return this.operation != null && !this.operation.isEmpty(); }
public boolean hasOperation() { return this.operation != null && !this.operation.isEmpty(); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("operation")) { this.operation = new SetupActionOperationComponent(); return this.operation; } else if (name.equals("assert")) { this.assert_ = new SetupActionAssertComponent(); return this.assert_; } else return super.addChild(name); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("operation")) { this.operation = new SetupActionOperationComponent(); return this.operation; } else if (name.equals("assert")) { this.assert_ = new SetupActionAssertComponent(); return this.assert_; } else return super.addChild(name); }
/** * @return {@link #operation} (An operation would involve a REST request to a server.) */ public SetupActionOperationComponent getOperation() { if (this.operation == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TeardownActionComponent.operation"); else if (Configuration.doAutoCreate()) this.operation = new SetupActionOperationComponent(); // cc return this.operation; }
/** * @return {@link #operation} (The operation to perform.) */ public SetupActionOperationComponent getOperation() { if (this.operation == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SetupActionComponent.operation"); else if (Configuration.doAutoCreate()) this.operation = new SetupActionOperationComponent(); // cc return this.operation; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("operation")) { this.operation = new SetupActionOperationComponent(); return this.operation; } else return super.addChild(name); }
/** * @return {@link #operation} (An operation would involve a REST request to a server.) */ public SetupActionOperationComponent getOperation() { if (this.operation == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestActionComponent.operation"); else if (Configuration.doAutoCreate()) this.operation = new SetupActionOperationComponent(); // cc return this.operation; }
/** * @return The first repetition of repeating field {@link #requestHeader}, creating it if it does not already exist */ public SetupActionOperationRequestHeaderComponent getRequestHeaderFirstRep() { if (getRequestHeader().isEmpty()) { addRequestHeader(); } return getRequestHeader().get(0); }