|
|
Re: How to set multiple values for a property of a stereotype? [message #1863490 is a reply to message #1863333] |
Mon, 05 February 2024 10:02  |
Eclipse User |
|
|
|
When you use getAppliedStereotype() you fall back on the underlying Eclipse UML2 Java API rather than using the marginally specified type safe OMG navigation (prototyped and supported in the Pivot-based Eclipse OCL but not in the Classic Eclipse OCL used by Acceleo).
The non-typesafe navigation is particularly troublesome for non-unit multiplicities where the EList return is declared as, and so treated as, an Object, consequently it is quite possible that asSequence, created a Sequence of Sequence which at(1) only unwrapped once.
You should probably use as oclAsType to impose your better knowledge on the getAppliedStereotype() return. Or try flatten() to eliminate the ambiguity.
|
|
|
Powered by
FUDForum. Page generated in 0.06397 seconds