Attributes | Name and Description |
---|---|
|
caplin.trading.validation.IntegerValidator(Array l_pFields, boolean bAllowStrings, int nMin, int nMax)
The constructor for the IntegerValidator. |
Attributes | Name and Description |
---|---|
|
String
validateField(String sFieldValue)
Performs validation on the specified field according to determine if the field value is an integer. |
►
caplin.trading.validation.IntegerValidator(Array l_pFields, boolean bAllowStrings, int nMin, int nMax)
The constructor for the IntegerValidator.
Array | l_pFields | An array of string field names that must be present in the data to validate. Must not be null. |
boolean | bAllowStrings | If true, integers may be specified in strings. Defaults to true. |
int | nMin | Optional minimum that the value may be. If it's not set, then the value has no lower bound. If it is set it must be a number. |
int | nMax | Optional maximum that the value may be. If it's not set, then the value has no higher bound. If it is set it must be a number. |
►
String
validateField(String sFieldValue)
Performs validation on the specified field according to determine if the field value is an integer. If this validator was constructed with a minimum or maximum value (nMin, nMax), the field value will be checked to determine if it exists within those bounds.
String | sFieldValue | The field value to validate. |