Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: how to attach ocl constraint to uml class
Re: how to attach ocl constraint to uml class [message #537897] Fri, 04 June 2010 06:19
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi wafaa

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
CompleteOCL document.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=315719 raised for these
issues.

Regards

Ed Willink

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!!
Previous Topic:Is the stereotype of an Object in UML must match the stereotype for its Class' stereotype ?
Next Topic:Re: how to attach ocl constraint to uml class
Goto Forum:
  


Current Time: Fri Apr 26 21:44:11 GMT 2024

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

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

Back to the top