Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » OCL questions
OCL questions [message #183499] Fri, 08 December 2006 14:29
Christophe Le Camus is currently offline Christophe Le CamusFriend
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.
Previous Topic:Removing imported libraries 3.2
Next Topic:For non-java files..How do I use spaces for tabs???
Goto Forum:
  


Current Time: Thu Apr 25 08:39:50 GMT 2024

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

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

Back to the top