users@jaxb.java.net

Re: Restriction parameter from schema to class annotation.

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Wed, 17 Oct 2007 12:54:00 +0100

What would you expect this annotation to achieve? The validation is
handled by the Schema object during (un)marshaling. Or do you mean this
would be purely for documentation purposes?


Michał Letyński wrote:
> Hello.
> Is is possible to force JAXB to get information about restriction in
> generated class for e.g:
> <restriction base="int">
> <minInclusive value="10" />
> </restriction>
>
> I would like to have similar information to required field:
> @XmlAttribute(minInclusive=10).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>