public abstract class SingleValueParameterTypeValidator<T> extends Object implements ParameterTypeValidator
| Modifier and Type | Field and Description |
|---|---|
T |
defaultValue |
| Constructor and Description |
|---|
SingleValueParameterTypeValidator(T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
getDefault()
Returns default value of parameter
|
RequestParameter |
isValid(String value)
Function that checks if parameter is valid.
|
RequestParameter |
isValidCollection(List<String> value)
Function that checks if array of values of a specific parameter.
|
abstract RequestParameter |
isValidSingleParam(String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateArrayTypeValidator, createArrayTypeValidator, createBooleanTypeValidator, createDoubleTypeValidator, createDoubleTypeValidator, createDoubleTypeValidator, createEnumTypeValidatorWithInnerValidator, createFloatTypeValidator, createFloatTypeValidator, createFloatTypeValidator, createIntegerTypeValidator, createIntegerTypeValidator, createIntegerTypeValidator, createLongTypeValidator, createLongTypeValidator, createLongTypeValidator, createStringEnumTypeValidator, createStringTypeValidator, createStringTypeValidator, createStringTypeValidator, hasDefaultpublic T defaultValue
public SingleValueParameterTypeValidator(T defaultValue)
public abstract RequestParameter isValidSingleParam(String value)
public RequestParameter isValid(String value)
ParameterTypeValidatorRequestParameters. For more info, check RequestParameter.isValid in interface ParameterTypeValidatorvalue - value of parameter to testpublic RequestParameter isValidCollection(List<String> value) throws ValidationException
ParameterTypeValidatorRequestParameters. For more info, check RequestParameter.isValidCollection in interface ParameterTypeValidatorvalue - list of values of parameter to testValidationExceptionpublic T getDefault()
ParameterTypeValidatorgetDefault in interface ParameterTypeValidatorCopyright © 2020. All rights reserved.