JAXB @XmlElementWrapper Plugin (new release)
The XmlElementWrapper plugin for JAXB xjc has been updated based on feedback from a number of users.
For information about the XmlElementWrapper plugin, what it does and how it work, please refer to the JAXB @XmlElementWrapper Plugin... blog entry.
To download the latest version of the XmlElementWrapper plugin, please visit the projects page. I've finally found the time to install and configure Hudson to build and distribute release versions of the code, so any upcoming releases will automatically be distributed to the projects page.
As always, if you have comments/suggestions please feel free to use the contact form to submit a mail to me.
Changes
- 2009-09-15: XmlElementWrapper and XmlElement naming
-
Naming applied to XmlElementWrapper and XmlElement annotations uses element naming from schema instead of defaulting to field and type name. This allows proper naming for elements with names that does not follow standard java naming conventions.
- 2009-09-15: Command line parameter parsing
-
Command line parameter parsing has been changed to follow the standard parsing approach outlined by XJC. Also, the command line
parsing now accommodates for differences in command argument passing between the Ant task and running XJC from the command line.
- 2009-09-15: Deletion of candidates outside the defaultPackage
-
The examples all use the notion of a default package for code generation. In the general case the ObjectFactory can be placed
according to the binding customization. The XEW plugin now locates the ObjectFactory in the package of the candidate class allowing deletion of candidates outside the default package.
Thanks
Special thanks to Alex Silva for pointing out the problem with naming the annotations and submitting a solution, as well as showing the intentions behind XJC argument parsing.
Also special thanks to Kenny MacLeod for directing my attention to problems related to using defaultPackage when deleting candidate classes.