private static CBoolean Map(this C_BOOLEAN model) { var primitive = new CBoolean { IsFalseValid = model.false_valid, IsTrueValid = model.true_valid }; if (model.assumed_value.HasValue) { primitive.AssumedValue = model.assumed_value.Value; } return(primitive); }
protected virtual C_BOOLEAN CloneBoolean(openehr.openehr.am.archetype.constraint_model.primitive.Impl.C_BOOLEAN o) { C_BOOLEAN result = new C_BOOLEAN(); result.true_valid = o.true_valid(); result.false_valid = o.false_valid(); if (o.has_assumed_value()) { result.assumed_valueSpecified = true; result.assumed_value = ((EiffelKernel.BOOLEAN_REF)o.assumed_value()).item(); } return(result); }