|
|
|
|
Re: EMF Validation on EAttributes [message #897604 is a reply to message #897601] |
Tue, 24 July 2012 17:01 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Simon,
Comments below.
On 24/07/2012 6:44 PM, Simon Barnett wrote:
> Just to add to my reply, I think I'd be right in saying that in order
> to validate a field which was bound to the name attribute (for
> instance) I'd then be validating the entire model every time, no?
For each constraint on an EClass, there is a generated method in the
validator that can you can call directly with the one instance object,
e.g., EcoreValidator.validateEClass_AtMostOneID. (Sorry it's a
metamodel example; hopefully that doesn't confuse the issue.)
> This would be the case for the validation of any given field for any
> given attribute - the entire model would be validated?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04250 seconds