@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("display")) { this.display = castToString(value); // StringType } else if (name.equals("equivalence")) { value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> } else if (name.equals("comment")) { this.comment = castToString(value); // StringType } else if (name.equals("dependsOn")) { this.getDependsOn().add((OtherElementComponent) value); } else if (name.equals("product")) { this.getProduct().add((OtherElementComponent) value); } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 1671764162: // display this.display = castToString(value); // StringType return value; case -15828692: // equivalence value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; case -1109214266: // dependsOn this.getDependsOn().add((OtherElementComponent) value); // OtherElementComponent return value; case -309474065: // product this.getProduct().add((OtherElementComponent) value); // OtherElementComponent return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("display")) { this.display = castToString(value); // StringType } else if (name.equals("equivalence")) { value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> } else if (name.equals("comment")) { this.comment = castToString(value); // StringType } else if (name.equals("dependsOn")) { this.getDependsOn().add((OtherElementComponent) value); } else if (name.equals("product")) { this.getProduct().add((OtherElementComponent) value); } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 1671764162: // display this.display = castToString(value); // StringType return value; case -15828692: // equivalence value = new ConceptMapEquivalenceEnumFactory().fromType(castToCode(value)); this.equivalence = (Enumeration) value; // Enumeration<ConceptMapEquivalence> return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; case -1109214266: // dependsOn this.getDependsOn().add((OtherElementComponent) value); // OtherElementComponent return value; case -309474065: // product this.getProduct().add((OtherElementComponent) value); // OtherElementComponent return value; default: return super.setProperty(hash, name, value); } }