The Apache CXF XJC-Utils subproject provides a bunch of utilities for working with JAXB to generate better or more usable code.
Currently, it consists of the following modules:
Provides a maven wrapper around the JAXB XJC utility
Initialize fields mapped from elements/attributes with their default values
Implements the toString() method
Generate getters named getXXX() for Booleans instead of isXXX()
Adds extensions methods to allow generated beans to be used as WSDL4J extensors
Provides a workaround forhttps://jaxb.dev.java.net/issues/show_bug.cgi?id=671
- Not needed for JAXB >=2.1.12
The source code can be checked out anonymously over HTTP by doing:
Building is similar to the build instructions for the main CXF project.