users@jaxb.java.net

Re: implClass Instantiation

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 22 Sep 2003 16:54:33 -0700

> I sent the requested information (schema, binding file and element names) to
> you last Wednesday. Have you had a chance to investigate this yet?

Yes. To fix this problem, apply implClass customization at complex types,
not at elements. For example, instead of:

    <jxb:bindings node="//xs:element[@name='INeedBeer']">
      <jxb:class implClass="a.b.c.d.e.f.INeedBeerImpl" />
    </jxb:bindings>

Write as:

    <jxb:bindings node="//xs:element[@name='INeedBeer']/xs:complexType">
      <jxb:class implClass="a.b.c.d.e.f.INeedBeerTypeImpl" />
    </jxb:bindings>

I agree that your customization should work and the intention is clear,
but it doesn't work because of various reasons. Sorry about that.


regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net