开发者

WSDL xsd:choice to java?

开发者 https://www.devze.com 2023-01-17 03:47 出处:网络
I\'m parsing a WSDL which has a xsd:choice. How ca开发者_JAVA百科n I model a xsd:choice on java?, I didn\'t find a union class or something like that.JAXB does this , Give it a try it will choose prop

I'm parsing a WSDL which has a xsd:choice. How ca开发者_JAVA百科n I model a xsd:choice on java?, I didn't find a union class or something like that.


JAXB does this , Give it a try it will choose proper model.


You can use a "Marker" interface (an interface which defines no methods) and let the different choices be a class which implements that interface.

0

精彩评论

暂无评论...
验证码 换一张
取 消