| Adding constraints to UML Profiles in Papyrus [message #997587] |
Tue, 08 January 2013 08:38  |
André Ribeiro Messages: 43 Registered: January 2013 |
Member |
|
|
Hi,
Recently, I've developed my own UML Profile using Papyrus.
Now my doubt is how can I add/associate OCL constraints to it?
My goal is to validate if a model that applies my profile is correct or not.
I'm using the following version of Eclipse:
Eclipse Modeling Tools
Version: Juno Service Release 1
Build id: 20120920-0800
Thanks in advance,
André Ribeiro
IST Lisbon
Portugal
André Ribeiro
IST Lisbon
Portugal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Adding constraints to UML Profiles in Papyrus [message #998711 is a reply to message #998690] |
Thu, 10 January 2013 09:42   |
André Ribeiro Messages: 43 Registered: January 2013 |
Member |
|
|
Hi Ed,
Probably I wasn't clear.
What I've presented above is the metamodel (where the UML metaclasses were omitted) and not a model that applies my Profile.
XisInteractionSpace, XisWidget, XisInteractionCompositeElement and so on, are indeed stereotypes that can be applied to classes.
XisOperation is a stereotype that can be applied to operations, while XisArgument can be applied to arguments of a XisOperation.
André Ribeiro
IST Lisbon
Portugal
|
|
|
|
| Re: Adding constraints to UML Profiles in Papyrus [message #999291 is a reply to message #999220] |
Fri, 11 January 2013 13:36   |
André Ribeiro Messages: 43 Registered: January 2013 |
Member |
|
|
Hi Vlad,
Quote:1. What tool are you currently using ?
I'm using Papyrus, but I've used Enterprise Architect to model the previous excerpt of the profile.
Quote:2. Can you provide a diagram showing the relationship between the stereotypes and UML meta-classes ?
Here is what I've done so far:

Quote:3. Can you provide the source of the profile ?
Yes, I can provide you my Papyrus Project.
Quote:For instance, if the user defines a Class XisInteractionCompositeElement with compositeElementType == 'List', it can only be composed of XisActionElements with actionElementType == 'ListItem'.
Is it possible to define such a constraint?
Can you please give some feedback about this?
Thank you!
André Ribeiro
IST Lisbon
Portugal
[Updated on: Mon, 14 January 2013 11:37] Report message to a moderator
|
|
|
|
|
|
|
|
| Re: Adding constraints to UML Profiles in Papyrus [message #1007998 is a reply to message #1007843] |
Thu, 07 February 2013 13:24  |
Ed Willink Messages: 3185 Registered: July 2009 |
Senior Member |
|
|
Hi
To be honest I haven't tried recently; I've been working on a scoping
bug for direct use of base_xxx and extension_xxx at M1.
In principle, you just need to enable the Profile constraints in the
Window->Preferences->Model Validation window (they won't appear till
you've validated once) then Validate again.
Regards
Ed Willink
On 07/02/2013 17:25, André Ribeiro wrote:
> Hi Ed,
>
> Is it now possible (with the release of M5) to perform such a validation?
>
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.04745 seconds