public static class Validators.DayOfMonthNumberStringValidator extends Validators.StringTrimmingValidator
CLASS_VERSION| Constructor and Description |
|---|
DayOfMonthNumberStringValidator()
Create a new instance.
|
DayOfMonthNumberStringValidator(boolean pRequired)
Create a new instance.
|
DayOfMonthNumberStringValidator(boolean pRequired,
java.lang.String pErrorCode)
Create 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.
|
shouldTrimgetMaxLength, setMaxLengthgetClassesRequired, 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 DayOfMonthNumberStringValidator(boolean pRequired,
java.lang.String pErrorCode)
pRequired - whether a non-null value is required.pErrorCode - the error code to use.public DayOfMonthNumberStringValidator()
public DayOfMonthNumberStringValidator(boolean pRequired)
pRequired - whether a non-null value is required.public 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.StringValidatorpPropertyName - 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.