Package | Description |
---|---|
ai.yue.library.base.config |
base配置包,提供自动配置项支持与增强
|
ai.yue.library.base.validation |
字段校验器
|
Modifier and Type | Method and Description |
---|---|
Validator |
BaseAutoConfig.validator() |
Modifier and Type | Method and Description |
---|---|
Validator |
Validator.assertFalse(String paramName)
必须为 false
|
Validator |
Validator.assertTrue(String paramName)
必须为 true
|
Validator |
Validator.birthday(String paramName)
生日校验
|
Validator |
Validator.carDrivingLicence(String paramName)
验证是否为驾驶证 别名:驾驶证档案编号、行驶证编号
|
Validator |
Validator.carVin(String paramName)
验证是否为车架号;别名:行驶证编号 车辆识别代号 车辆识别码
|
Validator |
Validator.cellphone(String paramName)
手机号校验
|
Validator |
Validator.chinese(String paramName)
中文校验
|
Validator |
Validator.creditCode(String paramName)
是否是有效的统一社会信用代码
|
Validator |
Validator.digits(Number min,
Number max,
String paramName)
必须是一个数字,其值必须在可接受的范围内(包含)
|
Validator |
Validator.email(String paramName)
邮箱校验
|
Validator |
Validator.english(String paramName)
英文校验
|
static Validator |
Validator.getValidatorAndSetParam(Object param)
获得参数校验器并设置校验对象
|
Validator |
Validator.idCard(String paramName)
身份证校验
|
Validator |
Validator.ipv4(String paramName)
IPV4地址校验
|
Validator |
Validator.ipv6(String paramName)
IPV6地址校验
|
Validator |
Validator.length(int min,
int max,
String paramName)
长度校验
|
Validator |
Validator.macAddress(String paramName)
MAC地址校验
|
Validator |
Validator.max(Number max,
String paramName)
最大值校验
|
Validator |
Validator.min(Number min,
String paramName)
最小值校验
|
Validator |
Validator.notEmpty(String paramName)
必须不为empty(null 或 "")
|
Validator |
Validator.notNull(String paramName)
必须不为
null |
Validator |
Validator.param(Object param)
切换校验对象
|
Validator |
Validator.plateNumber(String paramName)
中国车牌号校验
|
Validator |
Validator.regex(String regex,
String paramName)
正则校验
|
Validator |
Validator.url(String paramName)
URL校验
|
Validator |
Validator.uuid(String paramName)
UUID校验
|
Validator |
Validator.valid(Object param,
Class<?>... groups)
POJO对象校验(通过注解)
|
Validator |
Validator.zipCode(String paramName)
验证是否为邮政编码(中国)
|
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.