Class: ConverterFactory

Oracle® Fusion Middleware Oracle JavaScript Extension Toolkit (JET)
12c (12.1.4)

E54107-01

QuickNav

oj. ConverterFactory

Constructor

<abstract> new ConverterFactory()

The contract for a ConverterFactory that provides a factory method to create a converter by its type.
Source:

Fields

<static> CONVERTER_TYPE_DATETIME

Default converter type for datetime
Source:

<static> CONVERTER_TYPE_NUMBER

Default converter type for number
Source:

Methods

<static> createConverter(options) → {Object}

Creates an immutable converter instance of the requested type. Implementations can register custom converter factories for the supported or new types.
Parameters:
Name Type Description
options Object | null an object containing the options required by the converter for its initialization. The key value pairs used in the options is implementation specific.
Source:
Throws:
if an unrecognized type was provided
Type
TypeError
Returns:
a converter instance.
Type
Object