Sets up a function to lazy load the configuration when any of the other functions are called. This function can be set after some initial registration. It will be discarded immediately after its used.
Provides access to services.
Return the value converted from the original value to the desired resultLookupKey. It may be a reworking of the original value, such as a Date object converted to a number of seconds, or a number rounded to an integer. Return null if the value represents null. Return undefined if the value was unconvertable. See also convertUntilResult() for a more complex conversion.
The value to be converted. Check its type and possibly its content.
The value can represent several other values, such as a Date represents date, time, etc. Use this when you need to distinguish between them. If null or '', evaluate the value itself, such as checking its class (using 'instanceof') or for properties of an interface that you are using. This is often the dataType property of the ValueHost.
An object identifying the converter used and the converted value. Its value parameter is undefined when the value was not converted. Its converterUsed parameter is undefined when no DataTypeConverter could be found to try the conversion. Note that DataTypeConverter.convert() can return undefined, allowing for value=undefined and converterUsed=assigned.
Applies a converter specific to the value based on the desired result lookup key. If the result is an object (like Date or custom), it repeats with the new value, hopefully resulting in a primitive value for use by the DefaultComparer. Date -> number using UTCDateConverter RelativeDate class with getDate(): Date property -> Date -> number using RelativeDateConverter and UTCDateConverter.
The value to be converted. Check its type and possibly its content.
The value can represent several other values, such as a Date represents date, time, etc. Use this when you need to distinguish between them. If null or '', evaluate the value itself, such as checking its class (using 'instanceof') or for properties of an interface that you are using. This is often the dataType property of the ValueHost.
An object identifying the converter used and the converted value. Its value parameter is undefined when the value was not converted. Its converterUsed parameter is undefined when no DataTypeConverter could be found to try the conversion. Note that DataTypeConverter.convert() can return undefined, allowing for value=undefined and converterUsed=assigned.
Finds the first IDataTypeConverter that supports the value, or null if none are found.
The value to be converted. Check its type and possibly its content.
The value can represent several other values, such as a Date represents date, time, etc. Use this when you need to distinguish between them. If null or '', evaluate the value itself, such as checking its class (using 'instanceof') or for properties of an interface that you are using. This is often the dataType property of the ValueHost.
Finds all that support both the value and the sourceLookupKey parameter. The caller can then use the supportedResultLookupKeys to build an exact match test for the find() function.
Registers an instance of the interface supported by this service. It may replace an existing one, as determined by the subclass. Replace supported on: IDataTypeIdentifier
Returns the full collection.
If the user needs to abandon this instance, they should use this to clean up active resources (like timers) and to release memory that would stall the garbage collector from disposing this object. It should assign any object reference to undefined as a strong indicator that the object has been disposed.
Generated using TypeDoc v0.25.12
Service for changing the original value into something that you want a condition to evaluate using IDataTypeConverter instances.