public final class CSFieldValidator
extends java.lang.Object
This class uses the form field's javascript validation expression to validate the captured form field's value.
Constructor and Description |
---|
CSFieldValidator()
Create a new empty validator.
|
CSFieldValidator(java.lang.String strValidationExpression)
Create a new field validator for the supplied javascript validation expression.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValidationExpression()
Gets the JavaScript expression to be used by the field validator
|
void |
setValidationExpression(java.lang.String strValidationExpression)
Sets the JavaScript expression to be used by the field validator
|
boolean |
validateField(java.lang.String strFieldValue)
Validate the specified field value using the validation expression supplied when constructing this
FieldValidator object.
|
public CSFieldValidator()
public CSFieldValidator(java.lang.String strValidationExpression)
strValidationExpression
- The validation expressionpublic void setValidationExpression(java.lang.String strValidationExpression)
strValidationExpression
- the JavaScript expression to be used by the validatorpublic java.lang.String getValidationExpression()
public boolean validateField(java.lang.String strFieldValue) throws CSValidationException
strFieldValue
- The value to be validatedtrue
if the validation test passed or false
if the validation test
failedCSValidationException
- if the validation test could not be performedCopyright © 2022 Goss Interactive Ltd. All Rights Reserved.