public class NumberRangeValidator
extends java.lang.Object
implements com.softwareag.mobile.md.text.validation.IStringValidator
Constructor and Description |
---|
NumberRangeValidator(java.lang.String lowerBound,
java.lang.String upperBound)
Validates the input with the given range, including the bound values.
|
NumberRangeValidator(java.lang.String lowerBound,
java.lang.String upperBound,
java.lang.String includeBounds)
Validates the input with the given range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String inputString) |
public NumberRangeValidator(java.lang.String lowerBound, java.lang.String upperBound)
lowerBound
- the lower bound of the rangeupperBound
- the upper bound of the rangepublic NumberRangeValidator(java.lang.String lowerBound, java.lang.String upperBound, java.lang.String includeBounds)
lowerBound
- the lower bound of the range; must be an IntegerupperBound
- the upper bound of the range; must be an IntegerincludeBounds
- if "true"
, the bounds will be included when
validating