-
Key: OCL21-242
-
Legacy Issue Number: 7531
-
Status: closed
-
Source: OpenModeling ( Jos Warmer)
-
Summary:
23. – [1] The elements in a tuple value must have a type that conforms to the type
– of the corresponding tuple parts.
context TupleValue inv:
elements->forAll( elem |
let correspondingPart: Attribute =
self.model.allAttributes()->select( part | part.name = elem.name ) in elem.value.model.conformsTo( correspondingPart.type ) )
==> ’Attribute’ should be ’UML14::Core::Attribute’
==> ’select’ should be ’any’ -
Reported: OCL 2.0b2 — Thu, 10 Jun 2004 04:00 GMT
-
Disposition: Resolved — OCL 2.1
-
Disposition Summary:
No: OCL 2.4 does not yet have a UML-aligned type system so the UML14::Core:: is a solution for one particular tool. The prefix certainly shouldn't be UML14. It is likely that the UML aligned solution will not require a prefix at all legitimizing the original exposition.
Yes: any rather than select -
Updated: Fri, 6 Mar 2015 20:58 GMT