I use the command line as that is what was outlined on the Castor Site http://www.castor.org/sourcegen.html for generating souce code from an XML Schema document. If there are better ways to do it I shall be happy to try those as well.
Thank you -----Original Message----- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 3:59 PM To: [email protected] Subject: Re: [castor-user] How do I make get methods return ArrayLists? Actually, can you briefly explain to me why you are interfacing with Castor via command line, rather than using e.g. the Ant task for Castor or Maven ? Just being curious .... Werner Davis, Jonathan wrote: > I have Castor version 0.9.9.1 > > I am entering the following at the command prompt to create the files: > > java org.exolab.castor.builder.SourceGenerator -i SCHEMA.xsd > -binding-file SCHEMABinding.xml -types j2 > > The schema contains elements which have a reference to unbounded > occurences of another element, and currently Castor creates ArrayLists > for those, but then the 'get' method constructs and returns an Array > instead of the ArrayList. > > Thanks, > Jonathan Davis > > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 20, 2007 4:22 PM > To: [email protected] > Subject: Re: [castor-user] How do I make get methods return ArrayLists? > > Can I assume that you are using Ant and Castor's Ant task definition ? > If so, what version(s) ? > > Werner > > Davis, Jonathan wrote: >> I wish to make the get methods generated by Castor return ArrayLists >> rather than Arrays. I am using the -types j2 option to make my data >> types be ArrayLists rather than Vectors, but for every get method, >> instead of returning the ArrayList it builds an Array and returns >> that > >> instead. Is there any switch or flag or option to set to remedy this? >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

