This might be of help.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg11541.html

      > -----Original Message-----
      > From: Qasim Hussain [mailto:[EMAIL PROTECTED]
      > Sent: Wednesday, August 20, 2003 10:14 AM
      > To: [EMAIL PROTECTED]
      > Subject: [castor-dev] Hash Map in Source Code Generation
      > 
      > 
      > Hi
      > 
      > I am new to Castor and I want to find out if there is a 
      > way to configure
      > Castor Source Code Generator to generate a "HashMap" 
      > instead of a "array" of
      > elements when it creates the JavaBeans source code.  
      > For example I have the
      > following XML Schema.  I would like for Castor Source 
      > Code Generator to
      > create a HashMap for the "Item" element in the 
      > "shiporder" class keyed on
      > the "name" attribute of the "Item" element.
      > 
      >         <xs:element name="shiporder">
      >                 <xs:complexType>
      >                         <xs:sequence>
      >                                 <xs:element name="item" 
      > maxOccurs="unbounded">
      >                                         <xs:complexType>
      >                                                 <xs:sequence>
      >                                                         
      > <xs:element name="title" type="xs:string"/>
      >                                                         
      > <xs:element name="note" type="xs:string" minOccurs="0"/>
      >                                                         
      > <xs:element name="quantity" type="xs:positiveInteger"/>
      >                                                         
      > <xs:element name="price" type="xs:decimal"/>
      >                                                 </xs:sequence>
      >                                                 
      > <xs:attribute name="name" type="xs:string" use="required"/>
      >                                         </xs:complexType>
      >                                 </xs:element>
      >                         </xs:sequence>
      >                 </xs:complexType>
      >         </xs:element>
      > 
      > Sincerely,
      > 
      > Asim Hussain
      > X by 2, inc
      > 32000 Northwestern Highway, Suite 125
      > Farmington Hills, MI 48334
      > Phone: 248.538.8224
      > Fax: 248.538.9467
      > http://www.xby2.com
      > 
      > ----------------------------------------------------------- 
      > If you wish to unsubscribe from this mailing, send mail to
      > [EMAIL PROTECTED] with a subject of:
      >         unsubscribe castor-dev
      > 
      > 
      > DISCLAIMER:
      > This email message is for the sole use of the intended 
      > recipient(s) and may contain confidential and 
      > privileged information.  Any unauthorized review, use, 
      > disclosure or distribution is prohibited.  If you are 
      > not the intended recipient, please contact the sender 
      > by reply email and destroy all copies of the original 
      > message and attachments.
      > 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to