public static class Validators.LocaleStringValidator extends Validators.RequiredValidator<java.lang.String>
CLASS_VERSION| Constructor and Description |
|---|
LocaleStringValidator()
Construct a new instance.
|
LocaleStringValidator(boolean pRequired)
Construct a new instance.
|
LocaleStringValidator(boolean pRequired,
java.lang.String pErrorCode)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
validateValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue,
ValidatorContext<?> pContext)
Validate (and possibly convert) the specified property value.
|
getClassesRequired, getClassRequired, getRequiredOption, getRequiredPredicate, isRequired, isSourceOnly, keyMustBePresent, setClassesRequired, setClassRequired, setRequired, setRequiredOption, setRequiredPredicate, setSourceOnlyassertAlphanumeric, assertBoolean, assertDateTime, assertDouble, assertInstanceOf, assertInstanceOf, assertInteger, assertInteger, assertLong, assertNotBlankString, assertNotEmpty, assertNotEmpty, assertNotNull, assertNotNull, assertString, assertString, assertString, assertUnicodeAlphanumeric, createInstance, createInstance, getBeanPropertyValueForValidation, getCheckedBeanPropertyValueForValidation, getErrorCode, getNameForClass, getNameForClasses, getParentValidator, getPropertyNames, getPropertyValue, getPropertyValue, hasProperty, isDigits, isRequired, setErrorCode, setParentValidator, setPropertyValue, validateBeanPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorCode, setErrorCodevalidateBeanPropertypublic LocaleStringValidator()
public LocaleStringValidator(boolean pRequired,
java.lang.String pErrorCode)
pRequired - if true, a non-null valid will be requiredpErrorCode - the error code to use if validation fails.public LocaleStringValidator(boolean pRequired)
pRequired - if true, a non-null valid will be requiredpublic java.lang.String validateValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue,
ValidatorContext<?> pContext)
ValidatorvalidateValue in interface Validator<java.lang.String>validateValue in class Validators.RequiredValidator<java.lang.String>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.