@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("required")) { this.required = castToBoolean(value); // BooleanType } else if (name.equals("validated")) { this.validated = castToBoolean(value); // BooleanType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("origin")) { this.getOrigin().add(castToInteger(value)); } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("link")) { this.getLink().add(castToUri(value)); } else if (name.equals("capabilities")) { this.capabilities = castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -393139297: // required this.required = castToBoolean(value); // BooleanType return value; case -1109784050: // validated this.validated = castToBoolean(value); // BooleanType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1008619738: // origin this.getOrigin().add(castToInteger(value)); // IntegerType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case 3321850: // link this.getLink().add(castToUri(value)); // UriType return value; case -1487597642: // capabilities this.capabilities = castToCanonical(value); // CanonicalType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("required")) { this.required = castToBoolean(value); // BooleanType } else if (name.equals("validated")) { this.validated = castToBoolean(value); // BooleanType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("origin")) { this.getOrigin().add(castToInteger(value)); } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("link")) { this.getLink().add(castToUri(value)); } else if (name.equals("capabilities")) { this.capabilities = castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -393139297: // required this.required = castToBoolean(value); // BooleanType return value; case -1109784050: // validated this.validated = castToBoolean(value); // BooleanType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1008619738: // origin this.getOrigin().add(castToInteger(value)); // IntegerType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case 3321850: // link this.getLink().add(castToUri(value)); // UriType return value; case -1487597642: // capabilities this.capabilities = castToCanonical(value); // CanonicalType return value; default: return super.setProperty(hash, name, value); } }
public org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent(); copyElement(src, tgt); tgt.setRequired(src.getRequired()); tgt.setValidated(src.getValidated()); tgt.setDescription(src.getDescription()); tgt.setDestination(src.getDestination()); for (org.hl7.fhir.r4.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); tgt.setConformance(convertCanonicalToReference(src.getCapabilitiesElement())); return tgt; }
public org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent convertTestScriptMetadataCapabilityComponent(org.hl7.fhir.r4.model.TestScript.TestScriptMetadataCapabilityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent tgt = new org.hl7.fhir.instance.model.TestScript.TestScriptMetadataCapabilityComponent(); copyElement(src, tgt); tgt.setRequired(src.getRequired()); tgt.setValidated(src.getValidated()); tgt.setDescription(src.getDescription()); tgt.setDestination(src.getDestination()); for (org.hl7.fhir.r4.model.UriType t : src.getLink()) tgt.addLink(t.getValue()); tgt.setConformance(convertCanonicalToReference(src.getCapabilitiesElement())); return tgt; }