Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Exploding Generated java files with XJC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Exploding Generated java files with XJC" Watch "Exploding Generated java files with XJC" New topic
Author

Exploding Generated java files with XJC

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
Using the JAXB xjc Ant task, I can generate Java classes from a set of schemas. But complex types are defined as public static classes, within the "parent" class that uses them (if that makes any sense).

Is there some way to tell the XJC task to "explode" these types out to a separate, public class file? I've checked the docs, but can't find any option for this.
 
Consider Paul's rocket mass heater.
 
subject: Exploding Generated java files with XJC
 
Similar Threads
Problem with xjc ant task in jdk 1.6 in weblogic 10.3
my package doesnt contain ObjectFactory.class or jaxb.index
calling a method in a class with an instance of the class?
can't create java objects from schemas using xjc
Generating less JAXB classes