开发者

What to use instead validator in jaxb 2.0

开发者 https://www.devze.com 2022-12-26 19:07 出处:网络
JAXB version 1 spec have a Validator object, in version 2 Validator object was deprecated and optional. What do I need to use instead Validator开发者_如何学编程 object?In JAXB 2.0, the setValidating()

JAXB version 1 spec have a Validator object, in version 2 Validator object was deprecated and optional. What do I need to use instead Validator开发者_如何学编程 object?


In JAXB 2.0, the setValidating() method has been deprecated. Now, schema validation is performed using the JAXP 1.3 validation API. To validate using JAXB 2.0, create a SchemaFactory

For an example see the Validator Section here

0

精彩评论

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