|Confusing Property Types [message #1763933]
||Tue, 23 May 2017 08:01
| Philip SchrÃ¶der
Registered: January 2017
and thank you for your help.
I am trying to understand how to set class property types in Papyrus class diagrams.
I want something like this
As you see in the picture, I created a new class with a property Attribute1 and already tried the same as with Attribute2 with type <<ModelLibrary>> Ecore Primitive Types -> List.
Next with Attribute2 I tried with Map
But somehow the type becomes E or likewise K not List<E> and Map<K>.
What I got to understand is, that when chosing a type, you can chose to set several properties (not in the sense of class diagrams) of the typed element.
So I don't have to chose one of the blue lined things under the type but can set all.
Appart from that, I didn't understand much, I can set the package and namespace like in object oriented languages, the owner is the element in which context the property appears, I guess, which seems somehow useless here since it already is a property of the class, so the context should be clear.
I guessed ownedElement is an Element in a bin of the Map as a key value pair,
but when I open it, the only thing I can only chose Redefinable Template Signature, no idea, what ownedElement is supposed to be now.
But what I wanted is to set a template signature anyway.
But I want the type to be the whole thing on the traversed tree, not just the template parameter.
What do I need to do to achieve that?
Thank you for your time and trouble.
[Updated on: Tue, 23 May 2017 08:03]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01585 seconds