public interface InputValidationFactory
Modifier and Type | Method and Description |
---|---|
InputValidator<Double> |
createDoubleRangeValidator(double minValue,
double maxValue)
Creates a range validator for doubles which can be used to ensure that input values are between a specified
upper and lower boundary.
|
InputValidator<Integer> |
createIntegerRangeValidator(int minValue,
int maxValue)
Creates a range validator for integers which can be used to ensure that input values are between a specified
upper and lower boundary.
|
InputValidator<String> |
createStringLengthValidator(int minLength,
int maxLength)
Creates a validator which checks that the length of an input string is within the specified range.
|
InputValidator<Integer> createIntegerRangeValidator(int minValue, int maxValue)
Creates a range validator for integers which can be used to ensure that input values are between a specified upper and lower boundary. This validator can be used for configuring the virtual numeric keypad.
When an invalid value is entered on the virtual keypad, the default PolyScope error message will be displayed informing the user of the specified valid value range.minValue
- the minimal valid value of the validation range.maxValue
- the maximal valid value of the validation range.InputValidator<Double> createDoubleRangeValidator(double minValue, double maxValue)
Creates a range validator for doubles which can be used to ensure that input values are between a specified upper and lower boundary. This validator can be used for configuring the virtual numeric keypad.
When an invalid value is entered on the virtual keypad, the default PolyScope error message will be displayed informing the user of the specified valid value range.minValue
- the minimal valid value of the validation range.maxValue
- the maximal valid value of the validation range.InputValidator<String> createStringLengthValidator(int minLength, int maxLength)
Creates a validator which checks that the length of an input string is within the specified range. This validator can be used for configuring the virtual keyboard.
When a too short or too long string is entered on the virtual keyboard, the default PolyScope error message will be displayed informing the user of the specified string length requirement.minLength
- the minimal valid length of the input string.maxLength
- the maximal valid length of the input string.Copyright © 2023. All rights reserved.