@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("groupSize")) { this.groupSize = castToPositiveInt(value); // PositiveIntType } else if (name.equals("cost")) { this.cost = castToMoney(value); // Money } else if (name.equals("comment")) { this.comment = 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")) { this.type = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("groupSize")) { this.groupSize = castToPositiveInt(value); // PositiveIntType } else if (name.equals("cost")) { this.cost = castToMoney(value); // Money } else if (name.equals("comment")) { this.comment = 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 this.type = castToCodeableConcept(value); // CodeableConcept return value; case -1483017440: // groupSize this.groupSize = castToPositiveInt(value); // PositiveIntType return value; case 3059661: // cost this.cost = castToMoney(value); // Money return value; case 950398559: // comment this.comment = 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 this.type = castToCodeableConcept(value); // CodeableConcept return value; case -1483017440: // groupSize this.groupSize = castToPositiveInt(value); // PositiveIntType return value; case 3059661: // cost this.cost = castToMoney(value); // Money return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }