T
- the type the validator returns.public static class Validators.NonNullValidator<T> extends Validators.ValidatorImpl<T>
CLASS_VERSION
Constructor and Description |
---|
NonNullValidator() |
NonNullValidator(java.lang.String pErrorCode) |
Modifier and Type | Method and Description |
---|---|
T |
validateValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue,
ValidatorContext<?> pContext)
Validate (and possibly convert) the specified property value.
|
assertAlphanumeric, assertBoolean, assertDateTime, assertDouble, assertInstanceOf, assertInteger, assertLong, assertNotBlankString, assertNotEmpty, assertNotEmpty, assertNotNull, assertNotNull, assertString, assertString, assertString, createInstance, getBeanPropertyValueForValidation, getErrorCode, getNameForClass, getPropertyNames, getPropertyValue, getPropertyValue, hasProperty, isDigits, isRequired, keyMustBePresent, setErrorCode, setPropertyValue, validateBeanProperty
public NonNullValidator()
public NonNullValidator(java.lang.String pErrorCode)
public T validateValue(java.lang.String pPropertyName, java.lang.Object pPropertyValue, ValidatorContext<?> pContext)
Validator
validateValue
in interface Validator<T>
validateValue
in class Validators.ValidatorImpl<T>
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.