コード例 #1
0
 @Override
 public void setProperty(int hash, String name, Base value) throws FHIRException {
   switch (hash) {
     case 3355: // id
       this.id = castToString(value); // StringType
       break;
     case -612557761: // extension
       this.getExtension().add(castToExtension(value)); // Extension
       break;
     default:
       super.setProperty(hash, name, value);
   }
 }
コード例 #2
0
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("id")) this.id = castToString(value); // StringType
   else if (name.equals("extension")) this.getExtension().add(castToExtension(value));
   else super.setProperty(name, value);
 }