public static class Validators.UrlValidator extends Validators.RequiredValidator<java.net.URL>
CLASS_VERSION| Constructor and Description |
|---|
UrlValidator() |
UrlValidator(java.lang.String pErrorCode) |
UrlValidator(java.lang.String pErrorCode,
boolean pRequired) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRequiredProtocol()
Returns property requiredProtocol.
|
void |
setRequiredProtocol(java.lang.String pRequiredProtocol)
Sets property requiredProtocol.
|
java.net.URL |
validateValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue,
ValidatorContext<?> pContext)
Validate (and possibly convert) the specified property value.
|
getClassRequired, getRequiredOption, getRequiredPredicate, isRequired, keyMustBePresent, setClassRequired, setRequired, setRequiredOption, setRequiredPredicateassertAlphanumeric, assertBoolean, assertDateTime, assertDouble, assertInstanceOf, assertInteger, assertLong, assertNotBlankString, assertNotEmpty, assertNotEmpty, assertNotNull, assertNotNull, assertString, assertString, assertString, createInstance, getBeanPropertyValueForValidation, getErrorCode, getNameForClass, getPropertyNames, getPropertyValue, getPropertyValue, hasProperty, isDigits, isRequired, setErrorCode, setPropertyValue, validateBeanPropertypublic UrlValidator()
public UrlValidator(java.lang.String pErrorCode)
public UrlValidator(java.lang.String pErrorCode,
boolean pRequired)
public void setRequiredProtocol(java.lang.String pRequiredProtocol)
public java.lang.String getRequiredProtocol()
public java.net.URL validateValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue,
ValidatorContext<?> pContext)
ValidatorvalidateValue in interface Validator<java.net.URL>validateValue in class Validators.RequiredValidator<java.net.URL>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.