@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("status")) { this.status = castToString(value); // StringType } else if (name.equals("location")) { this.location = castToUri(value); // UriType } else if (name.equals("etag")) { this.etag = castToString(value); // StringType } else if (name.equals("lastModified")) { this.lastModified = castToInstant(value); // InstantType } else if (name.equals("outcome")) { this.outcome = castToResource(value); // Resource } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("status")) { this.status = castToString(value); // StringType } else if (name.equals("location")) { this.location = castToUri(value); // UriType } else if (name.equals("etag")) { this.etag = castToString(value); // StringType } else if (name.equals("lastModified")) { this.lastModified = castToInstant(value); // InstantType } else if (name.equals("outcome")) { this.outcome = castToResource(value); // Resource } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -892481550: // status this.status = castToString(value); // StringType return value; case 1901043637: // location this.location = castToUri(value); // UriType return value; case 3123477: // etag this.etag = castToString(value); // StringType return value; case 1959003007: // lastModified this.lastModified = castToInstant(value); // InstantType return value; case -1106507950: // outcome this.outcome = castToResource(value); // Resource return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -892481550: // status this.status = castToString(value); // StringType return value; case 1901043637: // location this.location = castToUri(value); // UriType return value; case 3123477: // etag this.etag = castToString(value); // StringType return value; case 1959003007: // lastModified this.lastModified = castToInstant(value); // InstantType return value; case -1106507950: // outcome this.outcome = castToResource(value); // Resource return value; default: return super.setProperty(hash, name, value); } }