Attributes | Name and Description |
---|---|
|
caplin.core.ValidationResult(caplin.core.ValidationResultListener oValidationResultListener)
Creates a new ValidationResult. |
Attributes | Name and Description |
---|---|
|
String
getFailureMessage()
Gets any message that validation may have returned if validation was not successful. |
|
boolean
hasResult()
Whether or not validation has completed for this ValidationResult. |
|
boolean
isValid()
Whether or not validation succeeded. |
|
void
setResult(boolean isValid, String sFailureMessage)
Specifies the result of validation. |
►
caplin.core.ValidationResult(caplin.core.ValidationResultListener oValidationResultListener)
Creates a new ValidationResult.
caplin.core.ValidationResultListener | oValidationResultListener | (optional) Listener informed when the validation result is available. |
►
String
getFailureMessage()
Gets any message that validation may have returned if validation was not successful.
►
boolean
hasResult()
Whether or not validation has completed for this ValidationResult.
►
boolean
isValid()
Whether or not validation succeeded.
►
void
setResult(boolean isValid, String sFailureMessage)
Specifies the result of validation.
This should only be called once during the lifetime of the ValidationResult
.
boolean | isValid | whether or not the current validation succeeded or failed. |
String | sFailureMessage | a message describing why validation failed if it did. Can be omitted if validation succeeded. |