Constructor
<abstract> new ConverterFactory()
The contract for a ConverterFactory that provides a factory method to create a converter by its
type.
- Source:
- ojvalidation/ValidationFactory.js, line 254
Fields
-
<static> CONVERTER_TYPE_DATETIME
-
Default converter type for datetime
- Source:
- ojvalidation/ValidationFactory.js, line 276
-
<static> CONVERTER_TYPE_NUMBER
-
Default converter type for number
- Source:
- ojvalidation/ValidationFactory.js, line 270
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:
- ojvalidation/ValidationFactory.js, line 289
Throws:
if an unrecognized type was provided- Type
- TypeError
Returns:
a converter instance.- Type
- Object