ocl standard lib primitive types [message #624612] |
Sat, 01 September 2007 10:22 |
Krzysztof Kaczmarski Messages: 88 Registered: July 2009 |
Member |
|
|
Hi All,
(I also send cc to mdt.uml2 beacause I don't really know who is the
right addressee of this problem)
In my uml models I use primitive types from oclstdlib.uml package
because I need them to be equipped with operations (+, -, /, =, etc).
When I load such a model and navigate in my procedure an element with
such type I get something like this:
org.eclipse.ocl.uml.impl.PrimitiveTypeImpl@151e824 (eProxyURI:
oclstdlib.uml#_alYNtqjQEdu4LJng8Rasow)
But then if I ask for owned elements (including operations) I get
empty result which can be also seen in debugger where 'operations' are
null for this type.
However when I do:
getOCLStandardLibrary().getInteger()
I receive:
org.eclipse.ocl.uml.impl.PrimitiveTypeImpl@1af8502 (name: Integer,
visibility: <unset>) (isLeaf: false, visibility: public, isAbstract:
false)
with all needed operations inside.
I suppose I load my models in a bad way so PrimitiveTypes loose their
operations. But what should I do actually to preserve them?
Thanks in advance,
Krzysztof Kaczmarski
|
|
|
Powered by
FUDForum. Page generated in 0.02925 seconds