users@jaxb.java.net

anonymous complex type

From: Saurabh Arora <sarora_at_novell.com>
Date: Sat, 31 May 2003 00:42:51 -0600

Is it possible not to generate anonymous complex types.

I have a simple xsd as below,

<xsd:element name="A" >
        <xsd:complexType >
                <xsd:attribute name="ID" type="xsd:string"
use="required"/>
                <xsd:attribute name="cost" type="xsd:string"
use="required"/>
        </xsd:complexType>
</xsd:element>


I endup getting classes like

A and AType,

where class A is like

public interface A
    extends javax.xml.bind.Element, primer.po.AType
{


}


which means we can effectively move all logic to A and remove AType.

Is it possible to do the same.
Some kind of global mappings, since i want to do for all complexType.

with regards,

saurabh arora


saurabh arora