public abstract class AbstractValidatorManger extends Object implements ValidatorManager
Modifier and Type | Field and Description |
---|---|
protected Map<String,FieldWrapper> |
fieldWrapperMap |
protected static Logger |
LOGGER |
FIELD_TITLE_KEY, VALIDATOR_MANAGER_BEAN_NAME, XSTEAM_PACKAGE_NAME
Constructor and Description |
---|
AbstractValidatorManger() |
Modifier and Type | Method and Description |
---|---|
protected FieldValidatorMap |
getFieldValidatorMap(Class<?> clazz) |
ValidatorManagerWrapper |
getValidatorManagerWrapper() |
ValidatorMapStorage |
getValidatorMapStorage() |
protected void |
putBasicValidators(String s,
Validator v) |
protected void |
putClassFieldValidators(Class<?> clazz,
FieldValidatorMap fieldValidatorMap) |
protected void |
removeBasicValidators(String s,
Validator v) |
protected FieldValidatorMap |
removeFieldValidatorMap(Class<?> clazz) |
void |
setValidatorManagerWrapper(ValidatorManagerWrapper validatorManagerWrapper) |
void |
setValidatorMapStorage(ValidatorMapStorage validatorMapStorage)
设置存储校验映射存储对象
|
void |
validate(Object object,
ValidateResult result)
校验接口
|
void |
validate(String scene,
Object object,
ValidateResult result)
校验接口
|
protected static final Logger LOGGER
protected Map<String,FieldWrapper> fieldWrapperMap
public void validate(String scene, Object object, ValidateResult result)
ValidatorManager
validate
in interface ValidatorManager
object
- 校验场景result
- 校验的结果public void validate(Object object, ValidateResult result)
ValidatorManager
validate
in interface ValidatorManager
object
- 需要校验的对象result
- 校验的结果public ValidatorMapStorage getValidatorMapStorage()
public void setValidatorMapStorage(ValidatorMapStorage validatorMapStorage)
ValidatorManager
setValidatorMapStorage
in interface ValidatorManager
public ValidatorManagerWrapper getValidatorManagerWrapper()
public void setValidatorManagerWrapper(ValidatorManagerWrapper validatorManagerWrapper)
protected void putClassFieldValidators(Class<?> clazz, FieldValidatorMap fieldValidatorMap)
protected FieldValidatorMap getFieldValidatorMap(Class<?> clazz)
protected FieldValidatorMap removeFieldValidatorMap(Class<?> clazz)
Copyright © 2006–2018 TinyGroup. All rights reserved.