T
- the type of the source property this validator validates.public interface UpdatingValidator<T> extends Validator<T>
Created: August 07 2014
Modifier and Type | Interface and Description |
---|---|
static class |
UpdatingValidator.NoOpValidator<T>
An updating validator that does nothing.
|
static class |
UpdatingValidator.NullObjectIfNulledUpdatingValidator
An extension of NullObjectIfNulledValidator that implements UpdatingValidator
as well.
|
static class |
UpdatingValidator.PropertyUpdateAction
Property update methods.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static UpdatingValidator |
NO_OP
A no-op validator.
|
Modifier and Type | Method and Description |
---|---|
UpdatingValidator.PropertyUpdateAction |
updateBeanValue(java.lang.String pPropertyName,
java.lang.Object pSourceValue,
java.lang.Object pTargetValue,
ValidatorContext<?> pContext)
Typically invoked by
ValidatorManager . |
validateBeanProperty, validateValue
static final java.lang.String CLASS_VERSION
static final UpdatingValidator NO_OP
UpdatingValidator.PropertyUpdateAction updateBeanValue(java.lang.String pPropertyName, java.lang.Object pSourceValue, java.lang.Object pTargetValue, ValidatorContext<?> pContext)
ValidatorManager
. Update
a bean value from a source value. Note that if a new target bean
is created, pContext.replaceParentDst() may need to be invoked.pSourceValue
- the value of pPropertyName property of the source
beanpTargetValue
- the existing value of pPropertyName of the target
beanpContext
- the current update context (with the
current source/target parent beans).