Class: NumberRangeValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
17.1.0

G12196-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-number

Note: This class is deprecated since 8.0.0. Directly create new instances of NumberRangeValidator instead.

QuickNav

Description

a factory method to create an instance of a built-in numberRange validator of type oj.NumberRangeValidator.


Usage

Javascript Import Format
define(['ojs/ojvalidationfactory-number'], function(validationfactoryNumber) {
 // Application should call API on validationfactoryNumber.NumberRangeValidatorFactory 
})
Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {NumberRangeValidatorFactory} from "ojs/ojvalidationfactory-number";

//To access this type in your code,
class MyClass implements NumberRangeValidatorFactory{
//or,
let myVariable: NumberRangeValidatorFactory;

For additional information visit:


a factory method to create an instance of a built-in numberRange validator of type oj.NumberRangeValidator.

Methods

createValidator(options) : {oj.NumberRangeValidator}

Creates an immutable validator instance of type oj.NumberRangeValidator that ensures that the value provided is within a given range.
Parameters:
Name Type Argument Description
options oj.NumberRangeValidator.ValidatorOptions <optional>
an object literal used to provide the minimum, maximum and other optional values. See oj.NumberRangeValidator for details.

Returns:
Type
oj.NumberRangeValidator