@Target(value=FIELD) @Retention(value=RUNTIME) @ValidateResolver(value=UrlCheck) public @interface CheckUrl
CheckRulesEnum.UrlCheck| 修飾子とタイプ | 必須要素と説明 |
|---|---|
boolean |
allow2slashes
Allow two slashes in the path component of the URL.
|
boolean |
allowallschemes
Allows all validly formatted schemes to pass validation instead of supplying a set of valid schemes.
|
boolean |
nofragments
Enabling this options disallows any URL fragments.
|
String[] |
schemes
Pass in one or more url schemes to consider valid, passing in a null will default to "http,https,ftp" being
valid.
|
| 修飾子とタイプ | 任意要素と説明 |
|---|---|
boolean |
verifyWhenNull
チェック対象の値がnullの場合にチェックするか否か.
|
public abstract boolean allowallschemes
UrlValidator.ALLOW_ALL_SCHEMESpublic abstract boolean allow2slashes
UrlValidator.ALLOW_2_SLASHESpublic abstract boolean nofragments
UrlValidator.NO_FRAGMENTSpublic abstract String[] schemes
UrlValidator.defaultSchemespublic abstract boolean verifyWhenNull
true:チェックする.false:チェックしない.バリデータ(
IValidator.validate(java.lang.annotation.Annotation, String, Object) )はエラーなし(true)を返却する.