Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:53 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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] Thu, 12 December 2013 04:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
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 14:13 Go to previous message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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 Dec 20 06:44:04 GMT 2014

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

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