Getting complex stereotype properties values [message #476900] |
Thu, 31 January 2008 15:55 |
Mark Howard 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
this?
Many thanks in advance,
Mark Howard
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24994 seconds