@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3506294: // role this.role = castToCodeableConcept(value); // CodeableConcept return value; case -1618432855: // identifier this.identifier = castToIdentifier(value); // Identifier return value; case 3373707: // name this.name = castToString(value); // StringType return value; case 263475116: // stereochemistry this.stereochemistry = castToCodeableConcept(value); // CodeableConcept return value; case 1420900135: // opticalActivity this.opticalActivity = castToCodeableConcept(value); // CodeableConcept return value; case 616660246: // molecularFormula this.molecularFormula = castToString(value); // StringType return value; case -1413853096: // amount this.amount = castToSubstanceAmount(value); // SubstanceAmount return value; default: return super.setProperty(hash, name, value); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof SubstanceMoiety)) return false; SubstanceMoiety o = (SubstanceMoiety) other_; return compareDeep(role, o.role, true) && compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(stereochemistry, o.stereochemistry, true) && compareDeep(opticalActivity, o.opticalActivity, true) && compareDeep(molecularFormula, o.molecularFormula, true) && compareDeep(amount, o.amount, true) ; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof SubstanceMoiety)) return false; SubstanceMoiety o = (SubstanceMoiety) other_; return compareValues(name, o.name, true) && compareValues(molecularFormula, o.molecularFormula, true) ; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3506294: return getRole(); case -1618432855: return getIdentifier(); case 3373707: return getNameElement(); case 263475116: return getStereochemistry(); case 1420900135: return getOpticalActivity(); case 616660246: return getMolecularFormulaElement(); case -1413853096: return getAmount(); default: return super.makeProperty(hash, name); } }
public SubstanceMoiety copy() { SubstanceMoiety dst = new SubstanceMoiety(); copyValues(dst); dst.role = role == null ? null : role.copy(); dst.identifier = identifier == null ? null : identifier.copy(); dst.name = name == null ? null : name.copy(); dst.stereochemistry = stereochemistry == null ? null : stereochemistry.copy(); dst.opticalActivity = opticalActivity == null ? null : opticalActivity.copy(); dst.molecularFormula = molecularFormula == null ? null : molecularFormula.copy(); dst.amount = amount == null ? null : amount.copy(); return dst; }
protected SubstanceMoiety typedCopy() { return copy(); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3506294: return getRole(); case -1618432855: return getIdentifier(); case 3373707: return getNameElement(); case 263475116: return getStereochemistry(); case 1420900135: return getOpticalActivity(); case 616660246: return getMolecularFormulaElement(); case -1413853096: return getAmount(); default: return super.makeProperty(hash, name); } }
public SubstanceMoiety copy() { SubstanceMoiety dst = new SubstanceMoiety(); copyValues(dst); dst.role = role == null ? null : role.copy(); dst.identifier = identifier == null ? null : identifier.copy(); dst.name = name == null ? null : name.copy(); dst.stereochemistry = stereochemistry == null ? null : stereochemistry.copy(); dst.opticalActivity = opticalActivity == null ? null : opticalActivity.copy(); dst.molecularFormula = molecularFormula == null ? null : molecularFormula.copy(); dst.amount = amount == null ? null : amount.copy(); return dst; }
protected SubstanceMoiety typedCopy() { return copy(); }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("role")) { this.role = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("identifier")) { this.identifier = castToIdentifier(value); // Identifier } else if (name.equals("name")) { this.name = castToString(value); // StringType } else if (name.equals("stereochemistry")) { this.stereochemistry = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("opticalActivity")) { this.opticalActivity = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("molecularFormula")) { this.molecularFormula = castToString(value); // StringType } else if (name.equals("amount")) { this.amount = castToSubstanceAmount(value); // SubstanceAmount } else return super.setProperty(name, value); return value; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof SubstanceMoiety)) return false; SubstanceMoiety o = (SubstanceMoiety) other_; return compareDeep(role, o.role, true) && compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(stereochemistry, o.stereochemistry, true) && compareDeep(opticalActivity, o.opticalActivity, true) && compareDeep(molecularFormula, o.molecularFormula, true) && compareDeep(amount, o.amount, true) ; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof SubstanceMoiety)) return false; SubstanceMoiety o = (SubstanceMoiety) other_; return compareValues(name, o.name, true) && compareValues(molecularFormula, o.molecularFormula, true) ; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3506294: // role this.role = castToCodeableConcept(value); // CodeableConcept return value; case -1618432855: // identifier this.identifier = castToIdentifier(value); // Identifier return value; case 3373707: // name this.name = castToString(value); // StringType return value; case 263475116: // stereochemistry this.stereochemistry = castToCodeableConcept(value); // CodeableConcept return value; case 1420900135: // opticalActivity this.opticalActivity = castToCodeableConcept(value); // CodeableConcept return value; case 616660246: // molecularFormula this.molecularFormula = castToString(value); // StringType return value; case -1413853096: // amount this.amount = castToSubstanceAmount(value); // SubstanceAmount return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("role")) { this.role = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("identifier")) { this.identifier = castToIdentifier(value); // Identifier } else if (name.equals("name")) { this.name = castToString(value); // StringType } else if (name.equals("stereochemistry")) { this.stereochemistry = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("opticalActivity")) { this.opticalActivity = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("molecularFormula")) { this.molecularFormula = castToString(value); // StringType } else if (name.equals("amount")) { this.amount = castToSubstanceAmount(value); // SubstanceAmount } else return super.setProperty(name, value); return value; }