@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("origin")) { this.origin = castToQuantity(value); // Quantity } else if (name.equals("period")) { this.period = castToDecimal(value); // DecimalType } else if (name.equals("factor")) { this.factor = castToDecimal(value); // DecimalType } else if (name.equals("lowerLimit")) { this.lowerLimit = castToDecimal(value); // DecimalType } else if (name.equals("upperLimit")) { this.upperLimit = castToDecimal(value); // DecimalType } else if (name.equals("dimensions")) { this.dimensions = castToPositiveInt(value); // PositiveIntType } else if (name.equals("data")) { this.data = 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 -1008619738: // origin this.origin = castToQuantity(value); // Quantity return value; case -991726143: // period this.period = castToDecimal(value); // DecimalType return value; case -1282148017: // factor this.factor = castToDecimal(value); // DecimalType return value; case 1209133370: // lowerLimit this.lowerLimit = castToDecimal(value); // DecimalType return value; case -1681713095: // upperLimit this.upperLimit = castToDecimal(value); // DecimalType return value; case 414334925: // dimensions this.dimensions = castToPositiveInt(value); // PositiveIntType return value; case 3076010: // data this.data = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("origin")) { this.origin = castToQuantity(value); // Quantity } else if (name.equals("period")) { this.period = castToDecimal(value); // DecimalType } else if (name.equals("factor")) { this.factor = castToDecimal(value); // DecimalType } else if (name.equals("lowerLimit")) { this.lowerLimit = castToDecimal(value); // DecimalType } else if (name.equals("upperLimit")) { this.upperLimit = castToDecimal(value); // DecimalType } else if (name.equals("dimensions")) { this.dimensions = castToPositiveInt(value); // PositiveIntType } else if (name.equals("data")) { this.data = 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 -1008619738: // origin this.origin = castToQuantity(value); // Quantity return value; case -991726143: // period this.period = castToDecimal(value); // DecimalType return value; case -1282148017: // factor this.factor = castToDecimal(value); // DecimalType return value; case 1209133370: // lowerLimit this.lowerLimit = castToDecimal(value); // DecimalType return value; case -1681713095: // upperLimit this.upperLimit = castToDecimal(value); // DecimalType return value; case 414334925: // dimensions this.dimensions = castToPositiveInt(value); // PositiveIntType return value; case 3076010: // data this.data = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }