|
|
|
|
|
|
|
Re: Defining Stereotypes [message #892069 is a reply to message #826603] |
Wed, 27 June 2012 02:31  |
Eclipse User |
|
|
|
Andrea,
>The problem is though I have easily managed to define attribute
>representing association to certain types of the target model (i.e. a given
>class sub classes, etc.) I can't see how to >define stereotype's attributes
>representing composition relationships (that is to say the attribute is a
>brand new instance of that type contained by the stereotype and not just a
> >reference to an already existing entity of that type). Is that possible or
>am I trying to break some coherency criteria between modeling and
>meta-modeling? :)
Properties aggregated by Composition do not work (at least to my knowledge)
correctly due to a problem in the view. However, there is a workaround: You
could create the element you want to have being aggregated as tagged value
separately (somewhere in a package or so). Afterwards, you can move this
element either programmatically or by using the default UML tree editor into
the composte tag definition of your Stereotype instance.
THT
Marc-Florian
"Andrea Mising name" schrieb im Newsbeitrag
news:jker11$3bm$1@xxxxxxxxe.org...
I am trying to define a Stereotype (for the Class meta-class) having an
attribute typed with a "complex" data type (with two properties typed with
primitive types) I have previously defined. In this case model editor does
not actually allow me to edit the properties of that stereotype's
attributes.
The problem is though I have easily managed to define attribute representing
association to certain types of the target model (i.e. a given class sub
classes, etc.) I can't see how to define stereotype's attributes
representing composition relationships (that is to say the attribute is a
brand new instance of that type contained by the stereotype and not just a
reference to an already existing entity of that type). Is that possible or
am I trying to break some coherency criteria between modeling and
meta-modeling? :)
|
|
|
Powered by
FUDForum. Page generated in 0.09702 seconds