예제 #1
0
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("type"))
     this.type = new LinkageTypeEnumFactory().fromType(value); // Enumeration<LinkageType>
   else if (name.equals("resource")) this.resource = castToReference(value); // Reference
   else super.setProperty(name, value);
 }
예제 #2
0
 @Override
 public void setProperty(int hash, String name, Base value) throws FHIRException {
   switch (hash) {
     case 3575610: // type
       this.type = new LinkageTypeEnumFactory().fromType(value); // Enumeration<LinkageType>
       break;
     case -341064690: // resource
       this.resource = castToReference(value); // Reference
       break;
     default:
       super.setProperty(hash, name, value);
   }
 }