users@jaxb.java.net

Re: ValidationEventHandler returns only parent object through ValidationEvent.getLocator().getObject()

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 04 Oct 2004 19:00:05 +0200

Hi.

>>>> My point is that:
>>>>
>>>> - there are many other sources that can feed constraints into
>>>> the object validator (say, RDBMS)
>>>> - you often want to add more constraints into the object validator
>>>> - the object validator can be used by many frameworks (JSF, for
>>>> example)
>>>
>>> I'd like to find JAXB-specific solution first...
>>
>> If anyone's interested, I've started a small add-on that would produce
>> "object verifiers".
>
> Cool! Where should I download the code :-) ?

The latest build is here:

http://herakles.fzi.de/lexi/jaxb-verification/jaxb-verification.zip

Run the de.fzi.dbs.verification.addon.tests.AddOnTest in the tests/books
directory to generate code with this add-on.

I've applied for a project on dev.java.net since I believe it help with
development (more schemas - more stable and universal tool).

Since I posted a code fragment last time I've had some progress so it
might make sence to check the attached BookTypeVerifier if you wish.

The check() method is supposed to check the structure of the object, the
checkXXX() methods - values of the fields. However, sometimes their
semantics intersect (like with heterogeneous collections). I know cases
which are not handled by the produced verifiers, but I'll leave them for
later.

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