@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("required")) { this.required = castToBoolean(value); // BooleanType } else if (name.equals("validated")) { this.validated = castToBoolean(value); // BooleanType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("origin")) { this.getOrigin().add(castToInteger(value)); } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("link")) { this.getLink().add(castToUri(value)); } else if (name.equals("capabilities")) { this.capabilities = castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -393139297: // required this.required = castToBoolean(value); // BooleanType return value; case -1109784050: // validated this.validated = castToBoolean(value); // BooleanType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1008619738: // origin this.getOrigin().add(castToInteger(value)); // IntegerType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case 3321850: // link this.getLink().add(castToUri(value)); // UriType return value; case -1487597642: // capabilities this.capabilities = castToCanonical(value); // CanonicalType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("required")) { this.required = castToBoolean(value); // BooleanType } else if (name.equals("validated")) { this.validated = castToBoolean(value); // BooleanType } else if (name.equals("description")) { this.description = castToString(value); // StringType } else if (name.equals("origin")) { this.getOrigin().add(castToInteger(value)); } else if (name.equals("destination")) { this.destination = castToInteger(value); // IntegerType } else if (name.equals("link")) { this.getLink().add(castToUri(value)); } else if (name.equals("capabilities")) { this.capabilities = castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -393139297: // required this.required = castToBoolean(value); // BooleanType return value; case -1109784050: // validated this.validated = castToBoolean(value); // BooleanType return value; case -1724546052: // description this.description = castToString(value); // StringType return value; case -1008619738: // origin this.getOrigin().add(castToInteger(value)); // IntegerType return value; case -1429847026: // destination this.destination = castToInteger(value); // IntegerType return value; case 3321850: // link this.getLink().add(castToUri(value)); // UriType return value; case -1487597642: // capabilities this.capabilities = castToCanonical(value); // CanonicalType return value; default: return super.setProperty(hash, name, value); } }