@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("name")) { this.name = castToId(value); // IdType } else if (name.equals("type")) { this.type = castToString(value); // StringType } else if (name.equals("mode")) { value = new StructureMapInputModeEnumFactory().fromType(castToCode(value)); this.mode = (Enumeration) value; // Enumeration<StructureMapInputMode> } else if (name.equals("documentation")) { this.documentation = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("name")) { this.name = castToId(value); // IdType } else if (name.equals("type")) { this.type = castToString(value); // StringType } else if (name.equals("mode")) { value = new StructureMapInputModeEnumFactory().fromType(castToCode(value)); this.mode = (Enumeration) value; // Enumeration<StructureMapInputMode> } else if (name.equals("documentation")) { this.documentation = 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 3373707: // name this.name = castToId(value); // IdType return value; case 3575610: // type this.type = castToString(value); // StringType return value; case 3357091: // mode value = new StructureMapInputModeEnumFactory().fromType(castToCode(value)); this.mode = (Enumeration) value; // Enumeration<StructureMapInputMode> return value; case 1587405498: // documentation this.documentation = 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 3373707: // name this.name = castToId(value); // IdType return value; case 3575610: // type this.type = castToString(value); // StringType return value; case 3357091: // mode value = new StructureMapInputModeEnumFactory().fromType(castToCode(value)); this.mode = (Enumeration) value; // Enumeration<StructureMapInputMode> return value; case 1587405498: // documentation this.documentation = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }