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)
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 rangemaxValue
- the maximal valid value of the validation rangeInputValidator<Double> createDoubleRangeValidator(double minValue, double maxValue)
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 rangemaxValue
- the maximal valid value of the validation rangeInputValidator<String> createStringLengthValidator(int minLength, int maxLength)
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 stringmaxLength
- the maximal valid length of the input stringCopyright © 2018. All rights reserved.