|
|
|
|
|
Re: check refernce is defined [message #1766187 is a reply to message #1766181] |
Sat, 17 June 2017 03:41  |
Eclipse User |
|
|
|
Hi
Hm. No null/invalid! Hardly an OCL tool then.
You could upgrade EMFtoCSP to support at least null and possibly invalid.
You could modify your modeling to make NULL / INVALID as explicitly modeled concepts.
You could modify your modeling to prevent any usage of null / invalid.
- the safe navigation analyses enable most forms of unsafe null to be detected, non-zero lowerbounds prohibit null
- you might use a variant OCLstdlib to exclude null support
- you might exploit the org.eclipse.ocl.pivot.internal.manager.InvalidAnalysis on the Lazy Collections branch (ewillink/509670) to prove that your expressions are invalid-free
Beware; the independent InvalidAnalysis might be integrated extending [?] (may-be-null) or [1] (may-not-be-null) element multiplicities in the grammar with [/] (may-be-invalid-or-null) and introducing Nullable<T>, Invalidatable<T> wrapper types to model them in the AST.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.07358 seconds