users@jaxb.java.net

Re: Model Group Binding for mixed content

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 12 Aug 2005 16:06:02 -0700

I'm not exactly sure what you are proposing, Lexi.

Aleksei Valikov wrote:
> Hi.
>
> Model group binding style is very helpful to homogenize JAXB collections
> and properties. Could it be somehow applied to the mixed-content types?
> That is, a property like
>
> /**
> * Objects of the following type(s) are allowed in the list
> * {_at_link org.jvnet.hyperjaxb2.test.one.MixedType.Name}
> * {_at_link java.lang.String}
> * {_at_link org.jvnet.hyperjaxb2.test.one.MixedType.Shipdate}
> * {_at_link org.jvnet.hyperjaxb2.test.one.MixedType.Orderid}
> *
> */
> java.util.List getContent();
>
> could contain instances of NameOrShipdateOrOrderidOrValue.
>
> 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
>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com