File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xjc:superClass limitation in JAXB

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to extend the Root Element in the JAXBgenerated code from ReutersPictureNewsAsComplexData.class .

I added the following global binding in the schema file



This creates the generated code


But it also add the super class extension on ReutersPictureNewsAsComplexData to all generated classes .

Is there a way to limit this only to the rot element level class.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic