Class: NumberConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
11.1.0

F37999-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-number

QuickNav

Description

A factory implementation to create the built-in number converter of type oj.IntlNumberConverter.


Usage

Javascript Import Format
define(['ojs/ojvalidationfactory-number'], function(validationfactoryNumber) {
 // Application should call API on validationfactoryNumber.NumberConverterFactory 
})
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 {NumberConverterFactory} from "ojs/ojvalidationfactory-number";

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

For additional information visit:


Deprecated:
Since Description
8.0.0 Directly create new instances of NumberConverter instead.
A factory implementation to create the built-in number converter of type oj.IntlNumberConverter.
Deprecated:
Since Description
8.0.0 Directly create new instances of NumberConverter instead.

Methods

createConverter(options) : {oj.IntlNumberConverter}

Creates an immutable (jet) number converter instance.
Parameters:
Name Type Argument Description
options oj.IntlNumberConverter.ConverterOptions <optional>
an object literal used to provide optional information to initialize the jet number converter with. For details on what to pass for options, refer to oj.IntlNumberConverter
Returns:
Type
oj.IntlNumberConverter