Namespace: validator

validator

Validator module.
The validate method calls all specific validations in turn and returns global validation status.
Author:
  • Fabio Pavesi (fabio@adamassoft.it)
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
Source:
Returns:
No errors and possible warnings -> true
At least one error -> false
Type
boolean