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

前端 未结 4 1158
逝去的感伤
逝去的感伤 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:12

    Many thanks to D.Shawley for pointing out the right section in JSR 222. Here is final solution which might be helpful and time saving for someone else. Original schema must be transformed as follows:

        
    
          
          
    
    
          
            
              
                
                
                
              
            
          
    
          
            
              
                
                
                
              
            
          
    
          
            
              
                
              
            
          
        
    

    Transformation can be easily performed via org.w3c.dom.Document inteface.

提交回复
热议问题