how to force schema compiled classes to extend specific class outside schema

前端 未结 4 1153
逝去的感伤
逝去的感伤 2020-12-10 17:31

Need help with following situation: Users can generate their own data structures which are stored as JAXB-ready XSD sources like below:



        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 18:05

    XJC has an extension for this purpose

    
    
        
           
              
               
              
           
        
    .
    .
    .
    
    

    For more information see:

    • http://jaxb.java.net/nonav/2.0.2/docs/vendorCustomizations.html

    The schema annotations can also be supplied via an external bindings file. For an example see:

    • How do you customize how JAXB generates plural method names?

提交回复
热议问题