13.07.2015 Views

JSR 303 的参考实现使用指南 - JBoss

JSR 303 的参考实现使用指南 - JBoss

JSR 303 的参考实现使用指南 - JBoss

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

第 2 章 Validation step by stepAnnotationSupported data作 用Hibernate metadatatypesimpact是 老 版 本 的 话 , 那 么需 要 把 <strong>JSR</strong> 223 的 实现 添 加 进 类 路 径 . 这个 约 束 条 件 中 的 表 达式 可 以 使 用 任 何 兼 容<strong>JSR</strong> 223 的 脚 本 来 编写 . ( 更 多 信 息 请 参 考javadoc)@URL(protocol=,StringChecks if the没 有host=, port=,annotated stringregexp=, flags=)is a valid URLaccording toRFC2396. If anyof the optionalparameters protocol,host or port arespecified, thecorresponding URLfragments mustmatch the specifiedvalues. Theoptional parametersregexp and flagsallow to specifyan additionalregular expression(including regularexpression flags)which the URL mustmatch.In some cases neither the Bean Validation constraints nor the custom constraintsprovided by Hibernate Validator will fulfill your requirements completely. In thiscase you can literally in a minute write your own constraints. We will discuss thisin 第 3 章 创 建 自 己 的 约 束 规 则 .28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!