[nbusers] Re: Code generation from XSD

  • From: Gary Greenberg < >
  • To:
  • Subject: [nbusers] Re: Code generation from XSD
  • Date: Mon, 15 Oct 2012 17:51:51 -0700

That is very good.
Unfortunately I cannot make changes to the schema.
The schema is forced upon me and my services suppose to work with .NET client 
which does convert the choice into a generic object which can be assigned to 
any type.

On Oct 14, 2012, at 2:54 AM, Timon Veenstra wrote:

>> I tried to move <xs:choice> into a separate complexType but got the same 
>> result.
>> Does anyone know how to eliminate these multiple references?
>
> Defining an attribute with the type of the abstract class can only be
> done if you mimic the same inheritance in your schema as well.
> With jxb you can probably make that class abstract instead of a normal 
> class.
> 
>       <xs:complexType name="WomensMagazine">
>               <xs:complexContent>
>                       <xs:extension base="Magazine">
> 
> from: http://www.ibm.com/developerworks/library/x-flexschema/
> 
> xjb:
> http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html
> http://blog.frankel.ch/customize-your-jaxb-bindings ;(which also
> contains an example to define a superclass)



[nbusers] Re: Code generation from XSD

(continued)

[nbusers] Re: Code generation from XSD

Edson Richter 10/11/2012

[nbusers] Re: Code generation from XSD

Javier Ortiz 10/11/2012

[nbusers] Re: Code generation from XSD

Fabrizio Giudici 10/11/2012

[nbusers] Re: Code generation from XSD

Fabrizio Giudici 10/11/2012

[nbusers] Re: Code generation from XSD

Gary Greenberg 10/12/2012

[nbusers] Re: Code generation from XSD

Gary Greenberg 10/12/2012

[nbusers] Re: Code generation from XSD

Fabrizio Giudici 10/13/2012

[nbusers] Re: Code generation from XSD

Milos Kleint 10/13/2012

[nbusers] Re: Code generation from XSD

Gary Greenberg 10/14/2012

[nbusers] Re: Code generation from XSD

Timon Veenstra 10/14/2012

[nbusers] Re: Code generation from XSD

Gary Greenberg 10/16/2012

[nbusers] Re: Code generation from XSD

Timon Veenstra 10/16/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close