Heiko - Actually, this is a really nice place to start understanding the castor code base. Take a look at org.exolab.castor.builder.CollectionInfo - especially #createAccessMethods... what I've done is subclass CollectionInfo and extended this method to provide the additional functionality that I wanted. You can then create an extension of FieldInfoFactory that uses your CollectionInfo class for source generation (there is a property in castor.properties where you specify this class)...
Good luck! Margaret Martin -----Original Message----- From: Heiko Erhardt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 9:38 AM To: [EMAIL PROTECTED] Subject: [castor-dev] Collection access For access to collection objects, Castor expects methods like <CollectionType> get<Name> () set<Name> (<CollectionType> collection) Since Iterators came into vogue and since one of the ideas of object-oriented programming is encapsulation of implementation details, many classes tend to expose iterators and adder methods only. I would suggest to support access methods like Iterator get<Name> () add<Name> (<Type> value) Haven't found anything in the docs. Sorry for not implementing it myself, but since I'm pretty new to Castor, I don't want to dive right into the product's core at this point. Thanks, Heiko Erhardt skynamics AG www.skynamics.com ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev