Validator module.
The validate method calls all specific validations in turn and returns global validation status.
The validate method calls all specific validations in turn and returns global validation status.
- Source:
Methods
(static) getErrorCount() → {number}
- Source:
Returns:
- Type
- number
(static) getWarningCount() → {number}
- Source:
Returns:
- Type
- number
(static) validate() → {boolean}
Validate method
It calls specific validation methods in turns and returns true or false
A return value of true can happen in the presence of warnings, so make sure to check getWarningCount as well
It calls specific validation methods in turns and returns true or false
A return value of true can happen in the presence of warnings, so make sure to check getWarningCount as well
- Source:
Returns:
No errors and possible warnings -> true
At least one error -> false
At least one error -> false
- Type
- boolean