Attributes | Name and Description |
---|---|
|
caplin.trading.validation.ValidationResult()
The constructor for ValidationResults. |
Attributes | Name and Description |
---|---|
|
void
addError(Object oErrorObj)
Adds an error to this ValidationResult. |
|
void
fail()
Sets the validation status to unsuccessful. |
|
Array
getErrors()
Returns the list of errors. |
|
boolean
getValidationSuccessful()
Returns true if the validation was successful, or false otherwise. |
►
caplin.trading.validation.ValidationResult()
The constructor for ValidationResults. When a ValidationResult is constructed, its status is successful; that is, an immediate call to getValidationSuccessful() will return true.
►
void
addError(Object oErrorObj)
Adds an error to this ValidationResult. If an error is added, a subsequent call to getValidationSuccessful will return false.
Object | oErrorObj | is an object containing any error that occurred during validation. |
►
void
fail()
Sets the validation status to unsuccessful. A subsequent call to getValidationSuccessful will return false.
►
Array
getErrors()
Returns the list of errors.
►
boolean
getValidationSuccessful()
Returns true if the validation was successful, or false otherwise.