Java Generator
I am about starting a new small sized project where I'm going to build a generator for Java classes. The classes will represent different transactions (as we call them) which in fact are different C-structs sent across normal socket.
We have a nice representation of the structures and transactions defined in XML files which in turn has a Schema file (xsd).
So my thought was to first generate the XML reading part from the Schema by using XMLBeans and then output the new Java classes by using Velocity.
Then it would just be the matter of writing some templates and glue the stuff together.
Anyone that has done something like this already and would care to give me any pointers?

4 Comments:
Thanks for your comment Yyyz, I take that into consideration. :-)
By
Javatomten, at 12:59 em
OMexus rules!!
By
Anonym, at 3:38 em
Blogg
By
Anonym, at 3:56 em
I have found perhaps a better tool than Velocity. At least the guys that has done it, clains it's better :-)
http://freemarker.org/
By
Javatomten, at 8:28 fm
Skicka en kommentar
<< Home