users@jaxb.java.net

Re: Specified conversion customization is not used.

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 11 Aug 2003 10:07:30 -0700

> Now, I want to do different code transformations based on whether the
> request is being handled or the response.

OK, in that case you should write something like:

  <bindings node="//xs:complexType[@name='ROOTType']/xs:choice/xs:sequence[1]/xs:sequence">
   <bindings node=".//xs:element[@type='Code_Type']">
    <property><baseType>
      <javaType name="java.lang.String"
             parseMethod="ROOTDatatypeConverter.parseRequestCode"
             printMethod="ROOTDatatypeConverter.printRequestCode"/>

The idea is to customize the binding of Code_Type where it's referenced.

Your binding was trying to customize it where it's declared. Only one
javaType is allowed at the declaration.

regards,
--
Kohsuke Kawaguchi                  408-276-7063 (x17063)
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