Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » How to provide ocl constraint for Enum attributes
How to provide ocl constraint for Enum attributes [message #538321] Mon, 07 June 2010 11:10 Go to next message
Milind is currently offline MilindFriend
Messages: 31
Registered: April 2010
Member
Hi,

I would like to have constraint for an attribute. Datatype for that attribute is custom Enum type.

How to implement ocl constraints such that message is displayed when a particular value is selected from the drop down.


Thanks and Regards,
Swathi
Re: How to provide ocl constraint for Enum attributes [message #538442 is a reply to message #538321] Mon, 07 June 2010 15:18 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4187
Registered: July 2009
Senior Member
Hi Swathi

What you write makes no sense.

Why should a constraint be evaluated when you select from a pull-down?

The pill-down is meta-model driven so only shows sensible values.

More complex validation waits until you hit Validate.

Regards

Ed Willink



On 07/06/2010 12:10, swathi wrote:
> Hi,
> I would like to have constraint for an attribute. Datatype for that
> attribute is custom Enum type.
> How to implement ocl constraints such that message is displayed when a
> particular value is selected from the drop down.
>
>
> Thanks and Regards,
> Swathi
Previous Topic:OCL query to find sequence diagram methods
Next Topic:refering to a sepecific attribute
Goto Forum:
  


Current Time: Fri Dec 19 15:13:46 GMT 2014

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

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