@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identity")) { this.identity = castToId(value); // IdType } else if (name.equals("uri")) { this.uri = castToUri(value); // UriType } else if (name.equals("name")) { this.name = castToString(value); // StringType } 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("identity")) { this.identity = castToId(value); // IdType } else if (name.equals("uri")) { this.uri = castToUri(value); // UriType } else if (name.equals("name")) { this.name = castToString(value); // StringType } 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 -135761730: // identity this.identity = castToId(value); // IdType return value; case 116076: // uri this.uri = castToUri(value); // UriType return value; case 3373707: // name this.name = castToString(value); // StringType 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 -135761730: // identity this.identity = castToId(value); // IdType return value; case 116076: // uri this.uri = castToUri(value); // UriType return value; case 3373707: // name this.name = castToString(value); // StringType return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }