I am using Castor's source generator to re-generate POJOs from my XML schema each time the schema changes.
My question is whether there exist any mechanism which enable iterating on the entire generated POJO model (I have a single root POJO element which refer to all the model) ? Is there any way (besides reflection) to iterate over all the fields of each generated POJO class using class descriptors or any other mechanism ? thanks, Y a i r R i n o t From: Werner Guttmann <[email protected]> To: [email protected], Cc: Yair Rinot/Haifa/IBM@IBMIL Date: 21/11/2012 03:17 PM Subject: Re: [castor-user] Is there exist built-in iteration over generated source in castor ? Hi, have you ever looked at Castor's source generator, which generates POJOs (+ XML bindings) from your XML schema. Any time your XML schema changes, simply re-generate the Java classes, and you should be set. Kind Regards Werner Guttmann On 15.11.2012 11:17, Yair Rinot wrote: > Hi > > I'm using castor to marshal XML data generated by users and transform it > to some proprietary model. > > During the data processing I need to iterate over the generated source a > few times and perform different actions. > Since the XML schema is changing along with the generated source, I'd > like to know whether there exist any mechanism for iterating the > generated source model which I can use to minimize the code changes > required when changing the schema ? > > thanks, > Y a i r R i n o t --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

