Hi Bjoern, Yes, you should be able to do this easily. Just use the finish() method call to add a constructor with parameters matching each of the fields in the class. You could instead use the valueAdded() method to collect information about all the different values in the class (which avoids any issues with field names, since you have access to the base name for the value), but you'd need to separately accumulate the values for each class for access in the finish() method (since the decorators will be called for any inner classes during the construction of the containing class).
- Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 ice_dra...@gmx.de wrote: > Is it possible to add a constructor with a class decorator when using > CodeGen? A factory method instead of a constructor is not an option. We use a > two-step generation process. CodeGen is used to implement the first step. The > second step requires classes with constructors. > > Thanks > Bjoern > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users