public class AnnotationValidatorManagerImpl extends AbstractValidatorManger implements AnnotationValidatorManager
fieldWrapperMap, LOGGER
VALIDATOR_MANAGER_BEAN_NAME
FIELD_TITLE_KEY, XSTEAM_PACKAGE_NAME
Constructor and Description |
---|
AnnotationValidatorManagerImpl() |
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)
根据用户注解,添加用户需要进行校验的类及属性上的校验规则
|
getFieldValidatorMap, getValidatorManagerWrapper, getValidatorMapStorage, putBasicValidators, putClassFieldValidators, removeBasicValidators, removeFieldValidatorMap, setValidatorManagerWrapper, setValidatorMapStorage, validate, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setValidatorMapStorage, validate, validate
public <T> void addValidatorAnnotation(Class<T> clazz, Field field, Annotation annotation)
AnnotationValidatorManager
addValidatorAnnotation
in interface AnnotationValidatorManager
clazz
- 用户需要校验的类field
- 用户需要校验的字段annotation
- 校验的注解public <T> void addFieldAnnotation(Class<T> clazz, Field field, Annotation annotation)
AnnotationValidatorManager
addFieldAnnotation
in interface AnnotationValidatorManager
clazz
- 用户需要校验的类field
- 用户需要校验的字段Copyright © 2006–2018 TinyGroup. All rights reserved.