Class: Validator

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

oj. Validator

Version:
  • 3.2.0
Since:
  • 0.6

Constructor

new Validator()

Source:

Methods

getHint() → {*}

Returns a hint that describes the validator rule.
Source:
Returns:
a hint string or null
Type
*

Init()

Initializes validator instance with the set options
Source:

validate(value) → {*}

Vaidates the value.
Parameters:
Name Type Description
value Object to be validated
Source:
Throws:
Error if validation fails
Returns:
a boolean true if validation passes.
Type
*