On 3 August 2010 09:07, Aleksei Valikov <valikov_at_gmx.net> wrote:
>
> Recently I did some experiments. I can imagine a JAXB 2 plugin which
> analyzes the schema and generates JSR 303 annotations which describe
> how the bean must be validated. In this case bean validator may report
> XML Schema validation errors with locations in the object structure.
>
In what way would that be better than the XML schema based
validation?
> However the task is rather difficult.
>
You are certainly aware that validation goes beyond checks of individual
properties of (individual) elements.
Recently I investigated the application of rule based programming
for this task, which is quite satisfying as it permits the definition of
the validation rules in a way that's akin to domain expert language.
And there's practically no limit to the complexity of validation rules.
-W
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>