Customizing JAXB Bindings


Custom JAXB binding declarations also allow you to customize your generated JAXB classes beyond the XML-specific constraints in an XML schema to include Java-specific refinements such as class and package name mappings.

JAXB provides two ways to customize an XML schema:

Code examples showing how to customize JAXB bindings are provided in Chapter 3.


XML schema that is generated from Java objects can be customized with JAXB annotations.