users@jaxb.java.net

Re: Configuration/Customization

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 24 Mar 2003 07:16:54 -0800

> how would I customize it so that getServices() returned the
> java.util.List directly? I assume I have to change my xsd, but not sure.
> I can do that, as long as the functionality and tag names remain the
> same.

The spec requires the compiler to generate an interface for every complex
type. Thus I'm afraid what you'd like to see cannot be done, without
removing the <serviceList> tag.

If you can remove this tag, then

 <complexType name="pandoraConfig">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="service" type="{http://devel.eoti.org/pandora}serviceConfiguration" maxOccurs="unbounded"/>
         <element name="vhosts" type="{http://devel.eoti.org/pandora}domains"/>
       </sequence>
       <attribute name="mimetypes" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>

should do it.

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com