Hi Jason, You should be able to use a code generation decorator (http://jibx.sourceforge.net/fromschema/codegen-extends.html) to add clone() method implementations. If you collect the field names and types in the valueAdded() method callbacks you should have all the information you need, without having to dig into the whole Eclipse AST structure.
- 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 On 10/06/2010 10:31 PM, Jason Morris wrote: > Hi there, > > I've generated a set of JIBX Binding Objects from an XML Schema, and > need to make Object clones of some of these. Could anyone suggest the > best way to do this? Is there a way I could modify CodeGen to produce > a nice implementation of Object.clone()? Or am I stuck with re-reading > the XML data over-and-over again? > > Thanks in advance. > //Jason > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users