2009-06-10 12 views
-1

私はxmlスキーマ(xsd)を解析するためにJAXBを使用しています。Xsd:list - > date issue

<xsd:complexType name="PromotionalInfo"> 
    <xsd:attribute name="promotionName" type="xsd:string" use="required"/> 
    <xsd:attribute name="blackOutDates" type="DateList"/> 
    <xsd:attribute name="amount" type="xsd:float" use="required"/> 
    <xsd:attribute name="endDate" type="com:Date"/> 
    <xsd:attribute name="startDate" type="com:Date"/> 
    <xsd:attribute name="purchaseEndDate" type="com:Date"/> 
    <xsd:attribute name="purchaseStartDate" type="com:Date"/> 
    <xsd:attribute name="promoType" type="xsd:string" use="required"/> 
    <xsd:attribute name="shortMarketingText" type="FiftyLimString" use="required"/> 
    <xsd:attribute name="numNightsRequired" type="xsd:int"/> 
    <xsd:attribute name="numNightsFree" type="xsd:int"/> 
    <xsd:attribute name="termsAndConditions" type="ThousandLimString"/> 
    <xsd:attribute name="customerFulfillmentRequirements" type="ThousandLimString"/> 
</xsd:complexType> 

<xsd:simpleType name="DateList" id="DateList"> 
    <xsd:list itemType="com:Date"/> 
</xsd:simpleType> 

さて問題は、JAXBが作成された私のpromotionalInfoクラスはリストタイプの代わりに、リスト型のDateListを目的としている次のように私はcomplexTypeのを持っています。誰もJAXBコンパイラのバグかどうかを知っていますか?もしあれば、私の場合には回避策がありますか?

ありがとうございます!

答えて

0

私はを見て、xs:listに対して私たちのタイプはxsd:dateタイプではないことがわかりました。