T - the type the validator will return.
Created: August 19 2014
public interface Validator<T>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Modifier and Type | Method and Description |
|---|---|
T |
validateBeanProperty(java.lang.String pPropertyName,
java.lang.Object pBean,
ValidatorContext<?> pContext)
Validate (and possibly convert) the specified property of bean pBean.
|
T |
validateValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue,
ValidatorContext<?> pContext)
Validate (and possibly convert) the specified property value.
|
static final java.lang.String CLASS_VERSION
T validateBeanProperty(java.lang.String pPropertyName, java.lang.Object pBean, ValidatorContext<?> pContext)
pPropertyName - the name of the property being validated.pBean - the bean whose property should be validated.pContext - the current validation contextT validateValue(java.lang.String pPropertyName, java.lang.Object pPropertyValue, ValidatorContext<?> pContext)
pPropertyName - the name of the property being validated. This
is typically used as a key for fetching the value from pProperties.pPropertyValue - the fetched property valuepContext - the current validation context.