users@jaxb.java.net

Re: [JAXB 2.0] Making the QNames available in the ObjectFactory

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 10 May 2005 17:12:03 -0700

jastrachan_at_mac.com wrote:
> what'd be really handy would be an extension option you can enable to
> generate something like this...
>
> @XmlAccessorType(value = AccessType.FIELD)
> @XmlType(name = "Relationship", namespace =
> "http://schemas.xmlsoap.org/ws/2003/03/addressing")
> public class Relationship {
> public static final QName QNAME = new
> QName("http://schemas.xmlsoap.org/ws/2003/03/addressing",
> "Relationship");
>
> ..
> }

Ah, that's very easy, if you are happy for it to be an JAXB RI specific
option. That sounds like an excellent use case for my recent plug-in
architecture work...


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com