public InsurancePlanPlanGeneralCostComponent addGeneralCost() { //3 InsurancePlanPlanGeneralCostComponent t = new InsurancePlanPlanGeneralCostComponent(); if (this.generalCost == null) this.generalCost = new ArrayList<InsurancePlanPlanGeneralCostComponent>(); this.generalCost.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("groupSize")) { this.groupSize = castToPositiveInt(value); // PositiveIntType } else if (name.equals("cost")) { this.cost = castToMoney(value); // Money } else if (name.equals("comment")) { this.comment = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
dst.generalCost = new ArrayList<InsurancePlanPlanGeneralCostComponent>(); for (InsurancePlanPlanGeneralCostComponent i : generalCost) dst.generalCost.add(i.copy()); }; if (specificCost != null) {
dst.generalCost = new ArrayList<InsurancePlanPlanGeneralCostComponent>(); for (InsurancePlanPlanGeneralCostComponent i : generalCost) dst.generalCost.add(i.copy()); }; if (specificCost != null) {
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3575610: // type this.type = castToCodeableConcept(value); // CodeableConcept return value; case -1483017440: // groupSize this.groupSize = castToPositiveInt(value); // PositiveIntType return value; case 3059661: // cost this.cost = castToMoney(value); // Money return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("groupSize")) { this.groupSize = castToPositiveInt(value); // PositiveIntType } else if (name.equals("cost")) { this.cost = castToMoney(value); // Money } else if (name.equals("comment")) { this.comment = castToString(value); // StringType } else return super.setProperty(name, value); return value; }
public InsurancePlanPlanGeneralCostComponent addGeneralCost() { //3 InsurancePlanPlanGeneralCostComponent t = new InsurancePlanPlanGeneralCostComponent(); if (this.generalCost == null) this.generalCost = new ArrayList<InsurancePlanPlanGeneralCostComponent>(); this.generalCost.add(t); return t; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof InsurancePlanPlanGeneralCostComponent)) return false; InsurancePlanPlanGeneralCostComponent o = (InsurancePlanPlanGeneralCostComponent) other_; return compareDeep(type, o.type, true) && compareDeep(groupSize, o.groupSize, true) && compareDeep(cost, o.cost, true) && compareDeep(comment, o.comment, true); }
public InsurancePlanPlanGeneralCostComponent copy() { InsurancePlanPlanGeneralCostComponent dst = new InsurancePlanPlanGeneralCostComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.groupSize = groupSize == null ? null : groupSize.copy(); dst.cost = cost == null ? null : cost.copy(); dst.comment = comment == null ? null : comment.copy(); return dst; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); case -1483017440: return getGroupSizeElement(); case 3059661: return getCost(); case 950398559: return getCommentElement(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof InsurancePlanPlanGeneralCostComponent)) return false; InsurancePlanPlanGeneralCostComponent o = (InsurancePlanPlanGeneralCostComponent) other_; return compareValues(groupSize, o.groupSize, true) && compareValues(comment, o.comment, true); }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3575610: // type this.type = castToCodeableConcept(value); // CodeableConcept return value; case -1483017440: // groupSize this.groupSize = castToPositiveInt(value); // PositiveIntType return value; case 3059661: // cost this.cost = castToMoney(value); // Money return value; case 950398559: // comment this.comment = castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); case -1483017440: return getGroupSizeElement(); case 3059661: return getCost(); case 950398559: return getCommentElement(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof InsurancePlanPlanGeneralCostComponent)) return false; InsurancePlanPlanGeneralCostComponent o = (InsurancePlanPlanGeneralCostComponent) other_; return compareDeep(type, o.type, true) && compareDeep(groupSize, o.groupSize, true) && compareDeep(cost, o.cost, true) && compareDeep(comment, o.comment, true); }
public InsurancePlanPlanGeneralCostComponent copy() { InsurancePlanPlanGeneralCostComponent dst = new InsurancePlanPlanGeneralCostComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.groupSize = groupSize == null ? null : groupSize.copy(); dst.cost = cost == null ? null : cost.copy(); dst.comment = comment == null ? null : comment.copy(); return dst; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof InsurancePlanPlanGeneralCostComponent)) return false; InsurancePlanPlanGeneralCostComponent o = (InsurancePlanPlanGeneralCostComponent) other_; return compareValues(groupSize, o.groupSize, true) && compareValues(comment, o.comment, true); }