[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.uml2] Composite attributes
|
Hi,
I have an stereotype Container with a property 'children: Widget[0..*]'
(iow, a list of widgets, where Widget is another stereotype and aggregation
type is Composite). When I create a model and apply stereotype container to
a given class, New Child menu options include a 'Children Widget' option.
Perfect, that is what I expected.
My question is: I have a method that traverses the model and transform each
Element on it. However, the child of type Widget is not an Element but an
EObject (more precisely, a DynamicEObjectImpl). Isn't the widget I added as
child of my container an Element of the model? Is it possible to obtain the
Element from the EObject?
By the way, I've read in a message on this group that it is not possible to
have an stereotype with a composition to another stereotype
(http://dev.eclipse.org/newslists/news.eclipse.tools.uml2/msg03179.html).
Does that mean what I did is not correct?
Thanks a lot,
--
Ricardo Giacomin