Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Generated EObjectValidator class
Generated EObjectValidator class [message #76325] Thu, 13 November 2008 11:57 Go to next message
Eclipse UserFriend
I understand from:

http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html

and

http://www.eclipsezone.com/eclipse/forums/m92233851.html

That an EObjectValidator class gets generated when there are constraints
associated with a particular model. What I would like to do is turn off
the production of this Validator regardless of the model. Is it possible
to force EMF to suppress the generation of this Validator?

Thanks,

John
Re: Generated EObjectValidator class [message #76359 is a reply to message #76325] Thu, 13 November 2008 13:01 Go to previous messageGo to next message
Eclipse UserFriend
John,

No that's not possible.


John T.E. Timm wrote:
> I understand from:
>
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html
>
> and
>
> http://www.eclipsezone.com/eclipse/forums/m92233851.html
>
> That an EObjectValidator class gets generated when there are
> constraints associated with a particular model. What I would like to
> do is turn off the production of this Validator regardless of the
> model. Is it possible to force EMF to suppress the generation of this
> Validator?
>
> Thanks,
>
> John
>
Re: Generated EObjectValidator class [message #76375 is a reply to message #76359] Thu, 13 November 2008 14:17 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

Thanks for the response. Do you think that automatically generating a
validator method for large models that exceeds the 64k limit is a
scalability issue? Should I submit an enhancement request to automatically
break the validator function into validator, validator0, validator1, ...
etc. if it exceeds a certain size?

Thanks,

John

Ed Merks wrote:

> John,

> No that's not possible.


> John T.E. Timm wrote:
>> I understand from:
>>
>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html
>>
>> and
>>
>> http://www.eclipsezone.com/eclipse/forums/m92233851.html
>>
>> That an EObjectValidator class gets generated when there are
>> constraints associated with a particular model. What I would like to
>> do is turn off the production of this Validator regardless of the
>> model. Is it possible to force EMF to suppress the generation of this
>> Validator?
>>
>> Thanks,
>>
>> John
>>
Re: Generated EObjectValidator class [message #76390 is a reply to message #76375] Thu, 13 November 2008 16:55 Go to previous message
Eclipse UserFriend
John,

Comments below.

John T.E. Timm wrote:
> Ed,
>
> Thanks for the response. Do you think that automatically generating a
> validator method for large models that exceeds the 64k limit is a
> scalability issue?
I assume it's the huge switch statement that's a problem, right? It's
obviously a problem based on size which I think is the definition of a
scalability issue.
> Should I submit an enhancement request to automatically break the
> validator function into validator, validator0, validator1, ... etc. if
> it exceeds a certain size?
That's the problem, is how to know when to do that. You can't know how
much byte code is generated.

Keep in mind too, that the EMF wishlist grows rapidly, so even asking is
not likely to produce results. Contributing is the most likely approach
to produce what you need...

To me the real problem is that folks have created obscenely large
unstructured models. If this were done in Java, no one would ever
consider defining 1500 things in one package...
>
> Thanks,
>
> John
>
> Ed Merks wrote:
>
>> John,
>
>> No that's not possible.
>
>
>> John T.E. Timm wrote:
>>> I understand from:
>>>
>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html
>>>
>>> and
>>>
>>> http://www.eclipsezone.com/eclipse/forums/m92233851.html
>>>
>>> That an EObjectValidator class gets generated when there are
>>> constraints associated with a particular model. What I would like to
>>> do is turn off the production of this Validator regardless of the
>>> model. Is it possible to force EMF to suppress the generation of
>>> this Validator?
>>>
>>> Thanks,
>>>
>>> John
>>>
>
>
Re: Generated EObjectValidator class [message #603478 is a reply to message #76325] Thu, 13 November 2008 13:01 Go to previous message
Eclipse UserFriend
John,

No that's not possible.


John T.E. Timm wrote:
> I understand from:
>
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html
>
> and
>
> http://www.eclipsezone.com/eclipse/forums/m92233851.html
>
> That an EObjectValidator class gets generated when there are
> constraints associated with a particular model. What I would like to
> do is turn off the production of this Validator regardless of the
> model. Is it possible to force EMF to suppress the generation of this
> Validator?
>
> Thanks,
>
> John
>
Re: Generated EObjectValidator class [message #603482 is a reply to message #76359] Thu, 13 November 2008 14:17 Go to previous message
Eclipse UserFriend
Ed,

Thanks for the response. Do you think that automatically generating a
validator method for large models that exceeds the 64k limit is a
scalability issue? Should I submit an enhancement request to automatically
break the validator function into validator, validator0, validator1, ...
etc. if it exceeds a certain size?

Thanks,

John

Ed Merks wrote:

> John,

> No that's not possible.


> John T.E. Timm wrote:
>> I understand from:
>>
>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html
>>
>> and
>>
>> http://www.eclipsezone.com/eclipse/forums/m92233851.html
>>
>> That an EObjectValidator class gets generated when there are
>> constraints associated with a particular model. What I would like to
>> do is turn off the production of this Validator regardless of the
>> model. Is it possible to force EMF to suppress the generation of this
>> Validator?
>>
>> Thanks,
>>
>> John
>>
Re: Generated EObjectValidator class [message #603487 is a reply to message #76375] Thu, 13 November 2008 16:55 Go to previous message
Eclipse UserFriend
John,

Comments below.

John T.E. Timm wrote:
> Ed,
>
> Thanks for the response. Do you think that automatically generating a
> validator method for large models that exceeds the 64k limit is a
> scalability issue?
I assume it's the huge switch statement that's a problem, right? It's
obviously a problem based on size which I think is the definition of a
scalability issue.
> Should I submit an enhancement request to automatically break the
> validator function into validator, validator0, validator1, ... etc. if
> it exceeds a certain size?
That's the problem, is how to know when to do that. You can't know how
much byte code is generated.

Keep in mind too, that the EMF wishlist grows rapidly, so even asking is
not likely to produce results. Contributing is the most likely approach
to produce what you need...

To me the real problem is that folks have created obscenely large
unstructured models. If this were done in Java, no one would ever
consider defining 1500 things in one package...
>
> Thanks,
>
> John
>
> Ed Merks wrote:
>
>> John,
>
>> No that's not possible.
>
>
>> John T.E. Timm wrote:
>>> I understand from:
>>>
>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 6922.html
>>>
>>> and
>>>
>>> http://www.eclipsezone.com/eclipse/forums/m92233851.html
>>>
>>> That an EObjectValidator class gets generated when there are
>>> constraints associated with a particular model. What I would like to
>>> do is turn off the production of this Validator regardless of the
>>> model. Is it possible to force EMF to suppress the generation of
>>> this Validator?
>>>
>>> Thanks,
>>>
>>> John
>>>
>
>
Previous Topic:TODO: The default literal value "EnumMemberA" is invalid
Next Topic:Dealing with a set of large XML schemas
Goto Forum:
  


Current Time: Thu May 01 10:36:00 EDT 2025

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

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

Back to the top