指定JAXB生成的类的超类 [英] Specifying Super Class of a JAXB-Generated Class
本文介绍了指定JAXB生成的类的超类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于JAXB生成的类,是否可以指定它们扩展特定类,还是只能扩展Object?
For JAXB-generated classes, is it possible to specify that they extend a particular class or can they only extend Object?
推荐答案
当然你可以使用JAXB外部绑定。
Sure you can with JAXB external binding.
你可以在这里阅读更多 http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/jaxb/vendorCustomizations.html
You can read more here http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/jaxb/vendorCustomizations.html
您需要的特殊标签是< xjc:superClass>
这篇关于指定JAXB生成的类的超类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文