Skip to main content



      Home
Home » Modeling » EMF » EObjectValidator not being regenerated after chnage to xsd
EObjectValidator not being regenerated after chnage to xsd [message #1220456] Wed, 11 December 2013 15:53 Go to next message
Eclipse UserFriend
Here is the recipe:
- Open my.genmodel
- Reload (from xml schema)
- save genmodel
- generate model
- generate edit

The EObjectValidator in the util dir does not get regenerated with the new
elements from the xsd. Is there something else that needs to be done to
force regeneration of the validator?
Re: EObjectValidator not being regenerated after chnage to xsd [message #1220477 is a reply to message #1220456] Wed, 11 December 2013 23:27 Go to previous messageGo to next message
Eclipse UserFriend
Drew,

Unless you add named constraints to you model, I don't expect any
validator to be generated. All the standard constraints supported for
XSD are supported direct by EObjectValidator itself, without a generated
subclass.


On 11/12/2013 9:53 PM, Drew wrote:
> Here is the recipe:
> - Open my.genmodel
> - Reload (from xml schema)
> - save genmodel
> - generate model
> - generate edit
>
> The EObjectValidator in the util dir does not get regenerated with the
> new elements from the xsd. Is there something else that needs to be
> done to force regeneration of the validator?
Re: EObjectValidator not being regenerated after chnage to xsd [message #1220549 is a reply to message #1220477] Thu, 12 December 2013 09:13 Go to previous message
Eclipse UserFriend
Ok. So by adding a dummy named constraint the new validator methods get
generated. Now I get it.

thanks

"Ed Merks" <ed.merks@xxxxxxxx> wrote in message
news:l8bdvi$ss6$2@xxxxxxxxe.org...
> Drew,
>
> Unless you add named constraints to you model, I don't expect any
> validator to be generated. All the standard constraints supported for XSD
> are supported direct by EObjectValidator itself, without a generated
> subclass.
>
>
> On 11/12/2013 9:53 PM, Drew wrote:
>> Here is the recipe:
>> - Open my.genmodel
>> - Reload (from xml schema)
>> - save genmodel
>> - generate model
>> - generate edit
>>
>> The EObjectValidator in the util dir does not get regenerated with the
>> new elements from the xsd. Is there something else that needs to be done
>> to force regeneration of the validator?
>
Previous Topic:[EMF] Is there a standard model modelling only data types (without operations)
Next Topic:Linking of EObjects from different resources, detect saves
Goto Forum:
  


Current Time: Sat Jul 05 04:05:59 EDT 2025

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

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

Back to the top