|Re: how to attach ocl constraint to uml class [message #537890 is a reply to message #537868]
||Fri, 04 June 2010 06:19
| Ed Willink
Registered: July 2009
The simple answer is I don't know. I've copied this to the UML2
newsgroup who may be able to help us.
When we added the OCL support at Helios M6 to exploit Ecore's ability to
invoke delegates, I was concerned that we weren't supporting UML too.
However Ecore had no prior support for OCL, whereas with the UML Model
Editor, a Package can have a Class which has a Constraint which has an
OpaqueExpression with an "OCL" language and an "ocl-expression" body. So
the question that you might get an answer to from the UML2 newsgroup is
whether UML2 validation, generation, conversion support the "OCL" language.
The addition of an OCLinEcore Xtext editor at Helios M7 naturally
extends to an OCLinUML Xtext editor that may appear in an OCL 3.1.0
release that we're considering providing along with Helios SR1.
At about the same time you should be able to use the new CompleteOCL
Xtext editor to develop an independent OCL document that complements
you're UML model; at present the editor only supports Ecore models
although a CompleteOCL text document can be parsed through the OCL API
against a UML model. Perhaps you could use the UML to Ecore conversion
to get an Ecore version of your models to support development of the
https://bugs.eclipse.org/bugs/show_bug.cgi?id=315719 raised for these
On 03/06/2010 23:57, wafaa wrote:
> hi all
> I want to know how to attache an ocl constraint to UML model or profile
> like this
> I have class x and it has four Boolean attributes a,b,c,d
> I want to set only one of them to true in a single class,
> could this be made via editor and no need to programmatically
> code,because I have not used it at all!!
Powered by FUDForum
. Page generated in 0.11721 seconds