users@jaxb.java.net

JXCFacade omit to build some types

From: Ugo Gagliardelli <ugo.gagliardelli_at_gmail.com>
Date: Sun, 13 Jun 2010 18:06:56 +0200

I have and xsd file that contains some simpleTypes, when I run JXCFacade
it generate correcty Dateformat and TimeFormat classes, while simply
ignore numformat, intformat and datetimeformat, any other type generated
class refer to these simpleTypes as String.
Is there somewhat I miss? What's wrong?
I tried to put the failing types in a xsd file alone too, running
JXCFacade against this new xsd it just generete nothing: no episode.xml,
no ObjectFactory no source file at all.
I tried to change the base restriction to specific xs types as
xs:dateTime with pattern facet but the generated java source just ignore
patterns and associated properties will be GregorianCalendar without any
dateformat restriction, so t's not a choice as well.

<xs:simpleType name="numformat">
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
<xs:whiteSpace value="replace" />
<xs:pattern value="[0]?[#]{1,15}[.]{1}[#]{0,6}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="intformat">
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
<xs:whiteSpace value="replace" />
<xs:pattern value="[0]?[#]{1,15}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="dateformat">
<xs:restriction base="xs:string">
<xs:enumeration value="yyyy-MM-dd" />
<xs:enumeration value="MM/dd/yyyy" />
<xs:enumeration value="dd.MM.yyyy" />
<xs:enumeration value="yyyy-MM-dd" />
<xs:enumeration value="yyyy" />
<xs:enumeration value="yyyyMM" />
<xs:enumeration value="yyyyMMdd" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="timeformat">
<xs:restriction base="xs:string">
<xs:enumeration value="HH:mm:ss.SSS" />
<xs:enumeration value="HH:mm:ss.SS" />
<xs:enumeration value="HH:mm:ss.S" />
<xs:enumeration value="HH:mm:ss" />
<xs:enumeration value="HH:mm" />
<xs:enumeration value="HH" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="datetimeformat">
<xs:restriction base="xs:string">
<xs:enumeration value="yyyy-MM-dd HH:mm:ss.SSS" />
<xs:enumeration value="yyyy-MM-dd.HH.mm.ss.SSS" />
<xs:enumeration value="yyyy-MM-dd HH:mm:ss" />
<xs:enumeration value="yyyy-MM-dd.HH.mm.ss" />
<xs:enumeration value="yyyy-MM-dd HH:mm" />
<xs:enumeration value="yyyy-MM-dd.HH.mm" />
<xs:enumeration value="yyyy-MM-dd HH" />
<xs:enumeration value="yyyy-MM-dd.HH" />
</xs:restriction>
</xs:simpleType>