public class ParameterTypeValidator extends Object
isValid(java.lang.String)
:
ValidationException
) and/or with
ValidationException.ErrorType
(). As for value, the
validation flow will care about setting all other ValidationException fieldsoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ParameterTypeValidator> |
__TYPE_ARG |
Constructor and Description |
---|
ParameterTypeValidator(Object delegate) |
ParameterTypeValidator(ParameterTypeValidator delegate) |
public static final io.vertx.lang.rx.TypeArg<ParameterTypeValidator> __TYPE_ARG
public ParameterTypeValidator(ParameterTypeValidator delegate)
public ParameterTypeValidator(Object delegate)
public ParameterTypeValidator getDelegate()
@Deprecated public RequestParameter isValid(String value)
value
- value of parameter to test@Deprecated public RequestParameter isValidCollection(List<String> value)
value
- list of values of parameter to test@Deprecated public Object getDefault()
@Deprecated public boolean hasDefault()
@Deprecated public static ParameterTypeValidator createIntegerTypeValidator(Integer defaultValue)
defaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createIntegerTypeValidator(Double maximum, Double minimum, Double multipleOf, Integer defaultValue)
maximum
- Maximum value. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createIntegerTypeValidator(Boolean exclusiveMaximum, Double maximum, Boolean exclusiveMinimum, Double minimum, Double multipleOf, Object defaultValue)
exclusiveMaximum
- If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be nullmaximum
- Maximum value. It can be nullexclusiveMinimum
- If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createLongTypeValidator(Long defaultValue)
defaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createLongTypeValidator(Double maximum, Double minimum, Double multipleOf, Long defaultValue)
maximum
- Maximum value. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createLongTypeValidator(Boolean exclusiveMaximum, Double maximum, Boolean exclusiveMinimum, Double minimum, Double multipleOf, Object defaultValue)
exclusiveMaximum
- If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be nullmaximum
- Maximum value. It can be nullexclusiveMinimum
- If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createFloatTypeValidator(Float defaultValue)
defaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createFloatTypeValidator(Double maximum, Double minimum, Double multipleOf, Float defaultValue)
maximum
- Maximum value. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createFloatTypeValidator(Boolean exclusiveMaximum, Double maximum, Boolean exclusiveMinimum, Double minimum, Double multipleOf, Object defaultValue)
exclusiveMaximum
- If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be nullmaximum
- Maximum value. It can be nullexclusiveMinimum
- If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createDoubleTypeValidator(Double defaultValue)
defaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createDoubleTypeValidator(Double maximum, Double minimum, Double multipleOf, Double defaultValue)
maximum
- Maximum value. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createDoubleTypeValidator(Boolean exclusiveMaximum, Double maximum, Boolean exclusiveMinimum, Double minimum, Double multipleOf, Object defaultValue)
exclusiveMaximum
- If true, value will be mark as valid if value < maximum. If false, value will be mark as valid if value <= maximum. The default value is false. It can be nullmaximum
- Maximum value. It can be nullexclusiveMinimum
- If true, value will be mark as valid if value > minimum. If false, value will be mark as valid if value >= minimum. The default value is false. It can be nullminimum
- Minimum value. It can be nullmultipleOf
- Multiple of value. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createStringTypeValidator(Object defaultValue)
defaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createStringTypeValidator(String pattern, Object defaultValue)
pattern
- pattern that string have to match. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createStringTypeValidator(String pattern, Integer minLength, Integer maxLength, Object defaultValue)
pattern
- pattern that string have to match. It can be nullminLength
- Minimum length of string. It can be nullmaxLength
- Maximum length of string. It can be nulldefaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createBooleanTypeValidator(Object defaultValue)
defaultValue
- Default value that will be set if parameter is empty or not found. To apply default value you have to set ParameterValidationRule.allowEmptyValue()
true. It can be null@Deprecated public static ParameterTypeValidator createStringEnumTypeValidator(List<String> allowedValues)
allowedValues
- allowed values. It can't be null@Deprecated public static ParameterTypeValidator createEnumTypeValidatorWithInnerValidator(List<Object> allowedValues, ParameterTypeValidator innerValidator)
allowedValues
- allowed values. It can't be nullinnerValidator
- After check if value is one of the lists, you can pass the value to an inner validator. It can be null@Deprecated public static ParameterTypeValidator createArrayTypeValidator(ParameterTypeValidator arrayMembersValidator)
arrayMembersValidator
- Type validator that describe array items. It can't be null@Deprecated public static ParameterTypeValidator createArrayTypeValidator(ParameterTypeValidator arrayMembersValidator, String collectionFormat, Integer maxItems, Integer minItems)
arrayMembersValidator
- Type validator that describe array items. It can't be nullcollectionFormat
- String that represent a ContainerSerializationStyle. Check out ContainerSerializationStyle
for more informations. The default value is "csv". It can be nullmaxItems
- Maximum items in array. It can be nullminItems
- Minimum items in array. It can be nullpublic static ParameterTypeValidator newInstance(ParameterTypeValidator arg)
Copyright © 2021 Eclipse. All rights reserved.