Class CreateToplevelXJBindings

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jvnet.basicjaxb.util.CreateToplevelXJBindings
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class CreateToplevelXJBindings extends DefaultHandler
A helper application to generate JAXB bindings for nested complex types. This application searches an XML Schema file for anonymously defined complex types that are nested within parent types. JPA 2.1 requires that member types be elevated to top-level classes. The XJC tool provides a feature to generate top-level classes but uses a simple naming convention for the Java type that may lead to name collisions. This helper generates bindings with complex type names based on the entire parentage to avoid name collisions. To use this helper, run it on each schema file and copy/paste the output to your bindings file (i.e. bindings.xjb).