|
|
|
Re: Validating namespace imports? [message #1446139 is a reply to message #1446130] |
Thu, 16 October 2014 12:18 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
An add-on to Xtext certainly won't compare in performance with something
integrated.
Particularly not if execution uses an interpreted approach.
For an occasional interactive how are we doing, the OCL approach should
work fine. If you want it integrated in a frequent auto-build, you may
need to work harder.
Regards
Ed Willink
On 16/10/2014 13:02, Stephan Herrmann wrote:
> Ed Willink wrote on Thu, 16 October 2014 13:00
>> Hi
>>
>> It is possible to use OCL to define custom validation rules that can
>> be loaded into unsuspecting EMF applications.
>>
>> The Complete OCL tutorial in the OCL documentation demonstrates how a
>> couple of style rules can be added to Xtext.
>
>
> Thanks for the suggestion. For this particular situation, can you say a
> word on performance? My intuition is, that anything that's not closely
> integrated with the way how Xtext evaluates imports will be
> prohibitively slow in projects with many hundrets of models, since each
> validation for an individual import will have to search the entire
> universe of model elements, no?
>
> In particular, it would be cool to have a strategy that is fast without
> requiring an index, since in some cases I'd want to run this validation
> at application runtime (i.e. outside Eclipse).
>
> thanks,
> Stephan
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds