users@jaxb.java.net

Re: Jaxb doesn't generate Interface for element of complex type

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Tue, 10 Jun 2014 09:52:42 +0200

But action is an *element*, and you have an interface for its type,
i.e., ActionConfig.

-W

On 10/06/2014, Himalaya Gupta <himalaya18_at_gmail.com> wrote:
> Hi,
>
> I have the following schema.
>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
> jaxb:version="1.0"
> xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
> jaxb:extensionBindingPrefixes="xjc">
>
> <xsd:annotation>
> <xsd:appinfo>
> <jaxb:globalBindings generateValueClass="false">
>
> </jaxb:globalBindings>
> </xsd:appinfo>
> </xsd:annotation>
>
> <xsd:element name="action" type="action-config"/>
>
> <xsd:complexType name="action-config">
> <xsd:attribute name="type" type="xsd:string"/>
> <xsd:attribute name="state" type="xsd:string"/>
> <xsd:attribute name="serviceid" type="xsd:string"/>
> </xsd:complexType>
> </xsd:schema>
>
> It generates the interface ActionConfig and does not generates the
> interface Action.
>
> Can you please help me out to fix the issue.
> Thanks in advance
>
> --
> Himalaya Gupta
>