public interface AnnotationValidatorManager extends ValidatorManager
Modifier and Type | Field and Description |
---|---|
static String |
VALIDATOR_MANAGER_BEAN_NAME |
FIELD_TITLE_KEY, XSTEAM_PACKAGE_NAME
Modifier and Type | Method and Description |
---|---|
<T> void |
addFieldAnnotation(Class<T> clazz,
Field field,
Annotation annotation)
如果用户需要进行校验的类中的属性含有@Field注解,则执行此方法,进行注册
|
<T> void |
addValidatorAnnotation(Class<T> clazz,
Field field,
Annotation annotation)
根据用户注解,添加用户需要进行校验的类及属性上的校验规则
|
setValidatorMapStorage, validate, validate
static final String VALIDATOR_MANAGER_BEAN_NAME
<T> void addValidatorAnnotation(Class<T> clazz, Field field, Annotation annotation)
T
- clazz
- 用户需要校验的类field
- 用户需要校验的字段annotation
- 校验的注解<T> void addFieldAnnotation(Class<T> clazz, Field field, Annotation annotation)
T
- clazz
- 用户需要校验的类field
- 用户需要校验的字段annotation
- Copyright © 2006–2018 TinyGroup. All rights reserved.