open class ParameterTypeValidator
Interface for declaration of method for validate a specific parameter type. If you want to implement your own type validator, you need only to implement io.vertx.rxjava.ext.web.api.validation.ParameterTypeValidator#isValid:
ParameterTypeValidator(delegate: ParameterTypeValidator) |
static val __TYPE_ARG: TypeArg<ParameterTypeValidator> |
open static fun createArrayTypeValidator(arrayMembersValidator: ParameterTypeValidator): ParameterTypeValidatoropen static fun createArrayTypeValidator(arrayMembersValidator: ParameterTypeValidator, collectionFormat: String, maxItems: Int, minItems: Int): ParameterTypeValidator
Create an array type validator |
|
open static fun createBooleanTypeValidator(defaultValue: Any): ParameterTypeValidator
Create a boolean type validator |
|
open static fun createDoubleTypeValidator(defaultValue: Double): ParameterTypeValidatoropen static fun createDoubleTypeValidator(maximum: Double, minimum: Double, multipleOf: Double, defaultValue: Double): ParameterTypeValidatoropen static fun createDoubleTypeValidator(exclusiveMaximum: Boolean, maximum: Double, exclusiveMinimum: Boolean, minimum: Double, multipleOf: Double, defaultValue: Any): ParameterTypeValidator
Create a new type validator for double values |
|
open static fun createEnumTypeValidatorWithInnerValidator(allowedValues: MutableList<String>, innerValidator: ParameterTypeValidator): ParameterTypeValidator
Create an enum type validator |
|
open static fun createFloatTypeValidator(defaultValue: Float): ParameterTypeValidatoropen static fun createFloatTypeValidator(maximum: Double, minimum: Double, multipleOf: Double, defaultValue: Float): ParameterTypeValidatoropen static fun createFloatTypeValidator(exclusiveMaximum: Boolean, maximum: Double, exclusiveMinimum: Boolean, minimum: Double, multipleOf: Double, defaultValue: Any): ParameterTypeValidator
Create a new type validator for float values |
|
open static fun createIntegerTypeValidator(defaultValue: Int): ParameterTypeValidatoropen static fun createIntegerTypeValidator(maximum: Double, minimum: Double, multipleOf: Double, defaultValue: Int): ParameterTypeValidatoropen static fun createIntegerTypeValidator(exclusiveMaximum: Boolean, maximum: Double, exclusiveMinimum: Boolean, minimum: Double, multipleOf: Double, defaultValue: Any): ParameterTypeValidator
Create a new type validator for integer values |
|
open static fun createLongTypeValidator(defaultValue: Long): ParameterTypeValidatoropen static fun createLongTypeValidator(maximum: Double, minimum: Double, multipleOf: Double, defaultValue: Long): ParameterTypeValidatoropen static fun createLongTypeValidator(exclusiveMaximum: Boolean, maximum: Double, exclusiveMinimum: Boolean, minimum: Double, multipleOf: Double, defaultValue: Any): ParameterTypeValidator
Create a new type validator for long integer values |
|
open static fun createStringEnumTypeValidator(allowedValues: MutableList<String>): ParameterTypeValidator
Create an enum type validator |
|
open static fun createStringTypeValidator(defaultValue: Any): ParameterTypeValidatoropen static fun createStringTypeValidator(pattern: String, defaultValue: Any): ParameterTypeValidatoropen static fun createStringTypeValidator(pattern: String, minLength: Int, maxLength: Int, defaultValue: Any): ParameterTypeValidator
Create a new string type validator |
|
open fun equals(other: Any?): Boolean |
|
open fun getDefault(): Any
Returns default value of parameter |
|
open fun getDelegate(): ParameterTypeValidator |
|
open fun hashCode(): Int |
|
open fun isValid(value: String): RequestParameter
Function that checks if parameter is valid. It returns a RequestParameter object that will be linked inside . For more info, check . |
|
open fun isValidCollection(value: MutableList<String>): RequestParameter
Function that checks if array of values of a specific parameter. It returns a RequestParameter object that will be linked inside . For more info, check . |
|
open static fun newInstance(arg: ParameterTypeValidator): ParameterTypeValidator |
|
open fun toString(): String |