Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to access the Property values of a Stereotype?
How to access the Property values of a Stereotype? [message #627546] Tue, 05 May 2009 13:56
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

i have created a dynamic profile (i know, static profiles are much
better, however :-) ) and assigned it correctly to an uml model. No, i
programmatically traverse the uml model and want to access a property of
an stereotype.

My current approach is the following:

final EList list = (EList)umlMessage.getValue(argument, "values");

which returns an EList of DynamicEObjectImpl object. That's also
correct, because the @value attribute of my stereotyp has a 1..*
cardinality.

But when i traverse the list, i have no idea, how to access the values
of the property? I tried with

((DynamicEObjectImpl)item).eSettings(...);

but this method needs an EStructuralFeature object, and i don't know how
to find it!

I think, im totally on the woodway because, it should be quite easier to
access values of stereotype properties, shouldn't it?

Thx
Timothy
Previous Topic:[Announce] MDT UML2 3.0.0M7 is available
Next Topic:Problem installing uml plug-in via update manager
Goto Forum:
  


Current Time: Fri Oct 19 09:29:21 GMT 2018

Powered by FUDForum. Page generated in 0.02403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top