Class | Description |
---|---|
BirthdayValidator |
生日格式校验器
|
CarDrivingLicenceValidator |
驾驶证格式校验器
|
CarVinValidator |
车架号校验器
|
CellphoneValidator | |
ChineseValidator | |
CreditCodeValidator |
统一社会信用代码校验器
|
EnglishValidator | |
IdCardValidator | |
IPV4Validator | |
IPV6Validator | |
MacAddressValidator | |
PlateNumberValidator | |
UUIDValidator | |
ZipCodeValidator |
邮政编码(中国)校验器
|
Annotation Type | Description |
---|---|
Birthday |
验证是否为生日
只支持以下几种格式: yyyyMMdd yyyy-MM-dd yyyy/MM/dd yyyyMMdd yyyy年MM月dd日 |
Birthday.List |
Defines several
@Birthday annotations on the same element. |
CarDrivingLicence |
验证是否为驾驶证(别名:驾驶证档案编号、行驶证编号)
|
CarDrivingLicence.List |
Defines several
@Date annotations on the same element. |
CarVin |
验证是否为车架号(别名:行驶证编号、车辆识别代号、车辆识别码)
|
CarVin.List |
Defines several
@CarVin annotations on the same element. |
Cellphone |
验证是否为手机号码(中国)
|
Cellphone.List |
Defines several
@Cellphone annotations on the same element. |
Chinese |
验证是否为汉字
|
Chinese.List |
Defines several
@Chinese annotations on the same element. |
CreditCode |
是否是有效的统一社会信用代码
|
CreditCode.List |
Defines several
@CreditCode annotations on the same element. |
English |
验证该字符串是否是字母(包括大写和小写字母)
|
English.List |
Defines several
@English annotations on the same element. |
IdCard |
验证是否为身份证号码(18位中国)
出生日期只支持到到2999年 |
IdCard.List |
Defines several
@IdCard annotations on the same element. |
IPV4 |
验证是否为IPV4地址
|
IPV4.List |
Defines several
@IPV4 annotations on the same element. |
IPV6 |
验证是否为IPV6地址
|
IPV6.List |
Defines several
@IPV6 annotations on the same element. |
MacAddress |
验证是否为MAC地址
|
MacAddress.List |
Defines several
@MacAddress annotations on the same element. |
PlateNumber |
验证是否为中国车牌号
|
PlateNumber.List |
Defines several
@PlateNumber annotations on the same element. |
UUID |
验证是否为UUID
包括带横线标准格式和不带横线的简单模式 |
UUID.List |
Defines several
@UUID annotations on the same element. |
ZipCode |
验证是否为邮政编码(中国)
|
ZipCode.List |
Defines several
@ZipCode annotations on the same element. |
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.