@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("method")) { value = new HTTPVerbEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<HTTPVerb> } else if (name.equals("url")) { this.url = castToUri(value); // UriType } else if (name.equals("ifNoneMatch")) { this.ifNoneMatch = castToString(value); // StringType } else if (name.equals("ifModifiedSince")) { this.ifModifiedSince = castToInstant(value); // InstantType } else if (name.equals("ifMatch")) { this.ifMatch = castToString(value); // StringType } else if (name.equals("ifNoneExist")) { this.ifNoneExist = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("method")) { value = new HTTPVerbEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<HTTPVerb> } else if (name.equals("url")) { this.url = castToUri(value); // UriType } else if (name.equals("ifNoneMatch")) { this.ifNoneMatch = castToString(value); // StringType } else if (name.equals("ifModifiedSince")) { this.ifModifiedSince = castToInstant(value); // InstantType } else if (name.equals("ifMatch")) { this.ifMatch = castToString(value); // StringType } else if (name.equals("ifNoneExist")) { this.ifNoneExist = 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 -1077554975: // method value = new HTTPVerbEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<HTTPVerb> return value; case 116079: // url this.url = castToUri(value); // UriType return value; case 171868368: // ifNoneMatch this.ifNoneMatch = castToString(value); // StringType return value; case -2061602860: // ifModifiedSince this.ifModifiedSince = castToInstant(value); // InstantType return value; case 1692894888: // ifMatch this.ifMatch = castToString(value); // StringType return value; case 165155330: // ifNoneExist this.ifNoneExist = 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 -1077554975: // method value = new HTTPVerbEnumFactory().fromType(castToCode(value)); this.method = (Enumeration) value; // Enumeration<HTTPVerb> return value; case 116079: // url this.url = castToUri(value); // UriType return value; case 171868368: // ifNoneMatch this.ifNoneMatch = castToString(value); // StringType return value; case -2061602860: // ifModifiedSince this.ifModifiedSince = castToInstant(value); // InstantType return value; case 1692894888: // ifMatch this.ifMatch = castToString(value); // StringType return value; case 165155330: // ifNoneExist this.ifNoneExist = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }