users@jaxb.java.net

Re: minoccurs on primative types

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Tue, 19 Aug 2008 12:06:52 +0100

It nmakes sense, though. If minoccurs was zero, and your java model was
a primitive type, what value would it be? You can't represent the
absense of something with primitive types.


jaspa wrote:
> Hi,
>
> I am using schemagen to create my xsd. It appears that minoccurs can not be
> set on primative types, e.g.
>
> Interger i => minoccurs="0"
> int i => no minoccurs
>
> I have tried using the @XmlElement(required=false) to force minoccurs=0, but
> this did not work
>
> Is this expected behaviour?
>
> Thanks,
> Jason
> --
> View this message in context: http://www.nabble.com/minoccurs-on-primative-types-tp19047817p19047817.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>