Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Getting complex stereotype properties values
Getting complex stereotype properties values [message #625956] Thu, 31 January 2008 15:55
Mark Howard is currently offline Mark HowardFriend
Messages: 10
Registered: July 2009
Junior Member
Hello UML2 developers,

I have a uml profile which defines a stereotype with a property which is
a list of objects of a class which is also defined in the same profile.
I'm able to use this profile in uml models, setting all the properties,
using rational software modeller.

I can't manage to access the same properties through my own code through.

value = property.getValue(mystereotype, "myproperty")
returns (according to a debugger) an EcoreEList$Dynamic<E>
This appears to be a collection of DynamicEObjectImpl objects. They have
an eClass field (which seems to be the definition of the class in the
profile which is the type of the property) and also a eSettings field,
which is an Object[] and contains some of the values I want, but not all
of them. eSettings has string values, but not enumeration literal values
(they are all set to null).

I'm sure that this can't be the correct was to be accessing these things,
but can't figure out how to get at the data. Does anyone know how to do

Many thanks in advance,

Mark Howard
Previous Topic:Componen element as a lifeline?
Next Topic:Getting complex stereotype properties values
Goto Forum:

Current Time: Thu Oct 06 03:27:11 GMT 2022

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

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

Back to the top