Affects Version/s: 0.9.5
Fix Version/s: None
Component/s: XML code generator
Environment:Operating System: All
Number of attachments :
1) Source Generator by default exposes collections only as arrays. When
o.e.c.b.extraCollectionMethods is set to true, it also exposes the underlying collection object, but
only as an afterthought. It would be nice to have the option to have the collection accessors be
the primary "bean-like" methods for generated objects.
2) When generating fields/methods in Java 2 mode, Source Generator uses ArrayLists as a drop-in
replacement for Vectors. This overlooks the flexibility possible with Java 2 collections. It would be
better to use parameters/return values of type List so that code that uses the generated object
model are not forced to convert to/from ArrayLists.
I'll attach a patch and one new class that implements these two features. They are disabled by
default, but may be enabled through properties in castorbuilder.properties.