@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("use")) { value = new AddressUseEnumFactory().fromType(castToCode(value)); this.use = (Enumeration) value; // Enumeration<AddressUse> } else if (name.equals("type")) { value = new AddressTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<AddressType> } else if (name.equals("text")) { this.text = castToString(value); // StringType } else if (name.equals("line")) { this.getLine().add(castToString(value)); } else if (name.equals("city")) { this.city = castToString(value); // StringType } else if (name.equals("district")) { this.district = castToString(value); // StringType } else if (name.equals("state")) { this.state = castToString(value); // StringType } else if (name.equals("postalCode")) { this.postalCode = castToString(value); // StringType } else if (name.equals("country")) { this.country = castToString(value); // StringType } else if (name.equals("period")) { this.period = castToPeriod(value); // Period } else return super.setProperty(name, value); return value; }
switch (hash) { case 116103: // use value = new AddressUseEnumFactory().fromType(castToCode(value)); this.use = (Enumeration) value; // Enumeration<AddressUse> return value; case 3575610: // type value = new AddressTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<AddressType> return value;
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("use")) { value = new AddressUseEnumFactory().fromType(castToCode(value)); this.use = (Enumeration) value; // Enumeration<AddressUse> } else if (name.equals("type")) { value = new AddressTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<AddressType> } else if (name.equals("text")) { this.text = castToString(value); // StringType } else if (name.equals("line")) { this.getLine().add(castToString(value)); } else if (name.equals("city")) { this.city = castToString(value); // StringType } else if (name.equals("district")) { this.district = castToString(value); // StringType } else if (name.equals("state")) { this.state = castToString(value); // StringType } else if (name.equals("postalCode")) { this.postalCode = castToString(value); // StringType } else if (name.equals("country")) { this.country = castToString(value); // StringType } else if (name.equals("period")) { this.period = castToPeriod(value); // Period } else return super.setProperty(name, value); return value; }
switch (hash) { case 116103: // use value = new AddressUseEnumFactory().fromType(castToCode(value)); this.use = (Enumeration) value; // Enumeration<AddressUse> return value; case 3575610: // type value = new AddressTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<AddressType> return value;