Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » OclInvalid as method argument
OclInvalid as method argument [message #577270] Wed, 10 May 2006 15:30
Wojciech Zurek is currently offline Wojciech ZurekFriend
Messages: 1
Registered: July 2009
Junior Member

I have recently started using ocl for describing some constraints and
navigating through our EMF models.
My question is about navigation - I have OCL that looks like:


self has reference to the process, that has method 'getObject' that takes
string which in this case is an attribute objectRef.
Unfortunately when there is no objectRef (the value of objectRef on the self
is null), evaluation visitor is trying to pass OclInvalid as the argument to
'getObject' method - as a result I have a lot of error messages in the log.

I have looked into EvaluationVisitor and it looks like there should be check
if any of the arguments is OclInvalid and return null or OclInvalid from the
method - without reporting this in Eclipse log file.
Am I right with that? (if so I can report defect/supply patch) or I should
rewrite my ocl expression in different way?

Wojciech Zurek
Previous Topic:Validation & OCL
Next Topic:OclInvalid as method argument
Goto Forum:

Current Time: Sun May 19 05:35:09 GMT 2024

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

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

Back to the top