Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » ocl standard lib primitive types
ocl standard lib primitive types [message #624612] Sat, 01 September 2007 10:22
Krzysztof Kaczmarski is currently offline Krzysztof KaczmarskiFriend
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
Previous Topic:XMI IDs in UML metamodel
Next Topic:org.eclipse.ocl.uml.impl.BagTypeImpl not contained in the resource
Goto Forum:
  


Current Time: Fri Apr 26 13:42:09 GMT 2024

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

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

Back to the top