@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.identifier = castToIdentifier(value); // Identifier } else if (name.equals("type")) { value = new BundleTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<BundleType> } else if (name.equals("timestamp")) { this.timestamp = castToInstant(value); // InstantType } else if (name.equals("total")) { this.total = castToUnsignedInt(value); // UnsignedIntType } else if (name.equals("link")) { this.getLink().add((BundleLinkComponent) value); } else if (name.equals("entry")) { this.getEntry().add((BundleEntryComponent) value); } else if (name.equals("signature")) { this.signature = castToSignature(value); // Signature } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1618432855: // identifier this.identifier = castToIdentifier(value); // Identifier return value; case 3575610: // type value = new BundleTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<BundleType> return value; case 55126294: // timestamp this.timestamp = castToInstant(value); // InstantType return value; case 110549828: // total this.total = castToUnsignedInt(value); // UnsignedIntType return value; case 3321850: // link this.getLink().add((BundleLinkComponent) value); // BundleLinkComponent return value; case 96667762: // entry this.getEntry().add((BundleEntryComponent) value); // BundleEntryComponent return value; case 1073584312: // signature this.signature = castToSignature(value); // Signature return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.identifier = castToIdentifier(value); // Identifier } else if (name.equals("type")) { value = new BundleTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<BundleType> } else if (name.equals("timestamp")) { this.timestamp = castToInstant(value); // InstantType } else if (name.equals("total")) { this.total = castToUnsignedInt(value); // UnsignedIntType } else if (name.equals("link")) { this.getLink().add((BundleLinkComponent) value); } else if (name.equals("entry")) { this.getEntry().add((BundleEntryComponent) value); } else if (name.equals("signature")) { this.signature = castToSignature(value); // Signature } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1618432855: // identifier this.identifier = castToIdentifier(value); // Identifier return value; case 3575610: // type value = new BundleTypeEnumFactory().fromType(castToCode(value)); this.type = (Enumeration) value; // Enumeration<BundleType> return value; case 55126294: // timestamp this.timestamp = castToInstant(value); // InstantType return value; case 110549828: // total this.total = castToUnsignedInt(value); // UnsignedIntType return value; case 3321850: // link this.getLink().add((BundleLinkComponent) value); // BundleLinkComponent return value; case 96667762: // entry this.getEntry().add((BundleEntryComponent) value); // BundleEntryComponent return value; case 1073584312: // signature this.signature = castToSignature(value); // Signature return value; default: return super.setProperty(hash, name, value); } }