Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » What triggers the EObjectValidator to generate?
What triggers the EObjectValidator to generate? [message #401152] Tue, 16 May 2006 12:06 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
I have two ecore models the first one is derived from a .xsd schema , the
second I created from scratch. The one I created from scratch does not get
an Instance of EObjectValidator generated to its .util dir. What model
settings drive the creation of the EObjectValidator?

thanks,drew
Re: What triggers the EObjectValidator to generate? [message #401153 is a reply to message #401152] Tue, 16 May 2006 12:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Drew,

The generator looks to see if there are any constraints on any of the
classifiers (GenClassifier.getGenConstraints). Facets on simple types
are constraints. Annotations as fetched by EcoreUtil.getConstraints are
constraints. And invariant operations on EClasses are constraints. If
there are no constraints, the EObjectValidator is sufficient for
performing validation so a derived instance isn't generated.


Drew wrote:
> I have two ecore models the first one is derived from a .xsd schema , the
> second I created from scratch. The one I created from scratch does not get
> an Instance of EObjectValidator generated to its .util dir. What model
> settings drive the creation of the EObjectValidator?
>
> thanks,drew
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XML serialization causing _._type to be appended to element name
Next Topic:How to leverage the 'Empty EMF Project' wizard functionality
Goto Forum:
  


Current Time: Fri Mar 29 11:23:07 GMT 2024

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

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

Back to the top