OCL questions [message #183499] |
Fri, 08 December 2006 14:29 |
Christophe Le Camus Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Hello,
I 've got some problems using the ocl API.
1/ I Have a metamodel splited in several subpackages (the ocl metamodel
for instance), and I try to create a query that use a navigation through
a property that leads in another subpackage. My example is the following
:
context Constraint
inv hello : self.body.name <> 'foo'
Constraint is declared in the uml package, and the target of the body
reference is declared, as I remember, in the types subpackage.
This navigation results in an error.
Is there a solution to avoid this behaviour ?
2/ When I register a new Def, I use a NewHelper to define a property or a
method over the meta model. If I execute another time the registration
of the Def I cath an error specifying this property or method is already
defined. I have not found any utilities to check if a Def has already
been registered. Have I miss something ? In the same approach, I have
not found any utilities tyo delete the Def previous registration.
My context is the following : we need to build several times an OCL
document.
3/ Registrations of DEF and LET clauses seem to be at the context level
in the API. I'm a little bit surprised of that.
Could you explain me the reason of that ?
Thanks a lot for your attention.
Best Regards
Christophe Le Camus
Topcased OCL contributor.
|
|
|
Powered by
FUDForum. Page generated in 0.08223 seconds