UML 2.6 RTF Avatar
  1. OMG Issue

UMLR — isReplaceAll=true and lowerBound > 1

  • Key: UMLR-277
  • Legacy Issue Number: 18951
  • Status: open  
  • Source: Airbus Group ( Mr. Yves Bernard)
  • Summary:

    About the AddStructuralFeatureAction the UML 2.5 spec states that, if isReplaceAll is true: “[…]The StructuralFeature always has a single value when the Action completes, even if the lower multiplicity of the StructuralFeature is greater than 1 “( §16.8.3).

    In the other hand, the semantics of the multiplicities states the following (§7.5.3): “If a MultiplicityElement specifies a multivalued multiplicity (i.e., upper bound greater than 1), then an instantiation of this element has a collection of values. The multiplicity is a constraint on the number of values that may validly occur in that set.”.

    Does it mean that executing this action with isReplaceAll=true on a structural feature with a lower multiplicity greater than one will result in an invalid model or, in other words, that such a usage is somehow “illegal”?

  • Reported: UML 2.5 — Fri, 13 Sep 2013 04:00 GMT
  • Updated: Fri, 6 Mar 2015 20:57 GMT