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 07:10 Go to next message
Milind is currently offline Milind
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 11:18 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4027
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 Aug 22 19:35:01 EDT 2014

Powered by FUDForum. Page generated in 0.01754 seconds