@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { value = new ExtensionContextTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<ExtensionContextType> } else if (name.equals("expression")) { this.expression = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { value = new ExtensionContextTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<ExtensionContextType> } else if (name.equals("expression")) { this.expression = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3575610: // type value = new ExtensionContextTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<ExtensionContextType> return value; case -1795452264: // expression this.expression = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3575610: // type value = new ExtensionContextTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<ExtensionContextType> return value; case -1795452264: // expression this.expression = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }