I have a model which refers on other models and it would be nice if all models, which are referenced get automatically validate if I validate the owner model.
No, you'll need to gather up the things you want to validate. Maybe
just you want to validate all the root objects of all the resources in
the resource set...
On 01/08/2012 4:59 PM, Missing name Mising name wrote:
> Hello,
>
> I have a model which refers on other models and it would be nice if
> all models, which are referenced get automatically validate if I
> validate the owner model.
>
> Is there any possibility to do it?
I'm not sure what you're asking. You'll come up with something new on
your own?
On 06/08/2012 1:58 PM, Missing name Mising name wrote:
> Thanks. :)
> I think using of an extension point to register all validators would
> be an acceptable way wouldn't be?
Oh ... I think there is a more easier way, which you described in your book.
In the root model validation method, I iterate through eAllContents and invoke the validation of each element.
Diagnostician.INSTANCE.validate already walks all the contained objects
of the root object you validate.
On 06/08/2012 3:34 PM, Missing name Mising name wrote:
> Oh ... I think there is a more easier way, which you described in your
> book.
> In the root model validation method, I iterate through eAllContents
> and invoke the validation of each element.
>
> Tell me if I am right, please.