Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » OCL restrictions on profiles
OCL restrictions on profiles [message #475572] Thu, 30 August 2007 23:07 Go to next message
Alexandre Torres is currently offline Alexandre TorresFriend
Messages: 139
Registered: July 2009
Senior Member
Hi.
Is it possible to attach OCL restrictions on elements of a profile?
The first motivation is to see if a profile application is valid. The
second is to filter the options presented to the user.
For instance: if IŽm going to create a stereotype that extends Class
metaclass with a property that points to one of the classŽs properties, I
would like to restrict the selection list to only the properties of the
target class: not all properties of all models as it happens today (and
when I mean all, itŽs ALL, including even properties from the UML
metamodel itself).


Thanks.
Re: OCL restrictions on profiles [message #475577 is a reply to message #475572] Fri, 31 August 2007 13:18 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Alexandre,

Yes it is possible to attach OCL constraints on elements of a profile such
as stereotypes.
However, you would have to write a bit of code to evaluate such constraints
at runtime (we can provide code in a patch that will allow one to evalute
such constraints via the "validate" mechanism).

- James.


"Alexandre Torres" <alexandre.torres@gmail.com> wrote in message
news:43f22382135008da352518b65129379d$1@www.eclipse.org...
> Hi.
> Is it possible to attach OCL restrictions on elements of a profile?
> The first motivation is to see if a profile application is valid. The
> second is to filter the options presented to the user.
> For instance: if I
Re: OCL restrictions on profiles [message #624604 is a reply to message #475572] Fri, 31 August 2007 13:18 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Alexandre,

Yes it is possible to attach OCL constraints on elements of a profile such
as stereotypes.
However, you would have to write a bit of code to evaluate such constraints
at runtime (we can provide code in a patch that will allow one to evalute
such constraints via the "validate" mechanism).

- James.


"Alexandre Torres" <alexandre.torres@gmail.com> wrote in message
news:43f22382135008da352518b65129379d$1@www.eclipse.org...
> Hi.
> Is it possible to attach OCL restrictions on elements of a profile?
> The first motivation is to see if a profile application is valid. The
> second is to filter the options presented to the user.
> For instance: if I
Previous Topic:Load UML Model Standalone
Next Topic:XMI IDs in UML metamodel
Goto Forum:
  


Current Time: Tue Apr 16 14:06:32 GMT 2024

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

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

Back to the top