public interface BeanValidator
Created: September 21 2015
Modifier and Type | Interface and Description |
---|---|
static class |
BeanValidator.NoOpBeanValidator
A BeanValidator that does nothing.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static BeanValidator.NoOpBeanValidator |
NO_OP_BEAN_VALIDATOR
A no-op validator.
|
Modifier and Type | Method and Description |
---|---|
void |
updateBean(java.lang.Object pSource,
java.lang.Object pTarget,
ValidatorContext<?> pContext)
Update the target bean with properties from pSource.
|
void |
validateBean(java.lang.Object pBean,
ValidatorContext<?> pContext)
Validate the specified bean.
|
static final java.lang.String CLASS_VERSION
static final BeanValidator.NoOpBeanValidator NO_OP_BEAN_VALIDATOR
void validateBean(java.lang.Object pBean, ValidatorContext<?> pContext)
pBean
- the bean to validatepContext
- the validator context to which any validation
errors will be added.void updateBean(java.lang.Object pSource, java.lang.Object pTarget, ValidatorContext<?> pContext)
pSource
- the source beanpTarget
- the target beanpContext
- the validator context.