users@jaxb.java.net

Re: Maven-jaxb2-plugin issue

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 8 May 2009 17:05:57 +0200

Hi,

> Thanks,
> It was very help full. Actually i have one more problem, for example if we
> got next simple type :
> <xs:simpleType name="UOMType">
> <xs:restriction base="xs:string">
> <xs:enumeration value="MW"/>
> <xs:enumeration value="MWh"/>
> <xs:enumeration value="US$"/>
> <xs:enumeration value="%"/>
> <xs:enumeration value="INTEGER"/>
> <xs:enumeration value="FLAG"/>
> </xs:restriction>
> </xs:simpleType>
> It wouldn't generate any java class. I understand that java enum couldn't
> have "%" child. But may be you know how could i treat this problem

See the typesafeEnumMember customization, for example here:

http://fusesource.com/docs/framework/2.1/jaxws/JAXWSCustomTypeMappingEnum.html

But I think the class does not get generated for a different reason.
XJC normally can process non-Java names. Does it work if you remove
the % enum?

Bye.
/lexi