Service for formatting data types used within tokens of error messages using IDataTypeFormatter instances.
Service for formatting data types used within tokens of error messages using IDataTypeFormatter instances.
Service for formatting data types used within tokens of error messages using IDataTypeParser instances.
Service for parsing strings into the native data type
Service that supports automatic generation of Conditions for the Data Type Check using IDataTypeCheckGenerator instances.
Service that supports automatic generation of Conditions for the Data Type Check using IDataTypeCheckGenerator instances.
Service to get the IMessageTokenResolver instance that replaces tokens in messages.
Service to get the IMessageTokenResolver instance that replaces tokens in messages.
Service to get the IValidatorConfigMergeService instance that determines how to merge ValueHost configurations from business logic and UI.
Service to get the IValidatorConfigMergeService instance that determines how to merge Validator configurations from business logic and UI.
The ValidatorFactory to use. It supplies a default if not setup by the user.
Factory for generating Validator.
Service to create Culture objects.
Service for identifying cultures that you will use in the app, by their CultureID ('en', 'en-US', 'en-GB', etc), and provides fallbacks for when a requested CultureID is not found.
Service to get the ILogger instance that replaces tokens in messages. Defaults to using ConsoleLoggerService.
Service to get the ILogger instance that replaces tokens in messages. Defaults to using the global defaultLoggerService
Factory to create Condition objects.
Factory to create Condition objects.
Service for identifing the Data Type Lookup Key associated with a data type using IDataTypeIdentifier instances.
Service for identifing the Data Type Lookup Key associated with a data type using IDataTypeIdentifier instances.
Service for changing the original value into something that you want a condition to evaluate using IDataTypeConverter instances.
Service for changing the original value into something that you want a condition to evaluate using IDataTypeConverter instances.
Service for changing the comparing two values using IDataTypeComparer instances.
Service for changing the comparing two values using IDataTypeComparer instances.
Service for creating a relationship between a lookup key and another that is the base data type it is built around. For example, LookupKey.Integer uses a number as the base data type. So it has a relationship with LookupKey.Number. This service keeps these relationships. The DataTypeFormatterService and DataTypeParserService consume this as they try to find the best fitting Formatter or Parser. So go ahead and assign your ValueHost.datatype to LookupKey.Integer. If there is no IntegerParser (there isn't), expect to be using the NumberParser.
Service for creating a relationship between a lookup key and another that is the base data type it is built around. For example, LookupKey.Integer uses a number as the base data type. So it has a relationship with LookupKey.Number. This service keeps these relationships. The DataTypeFormatterService and DataTypeParserService consume this as they try to find the best fitting Formatter or Parser. So go ahead and assign your ValueHost.datatype to LookupKey.Integer. If there is no IntegerParser (there isn't), expect to be using the NumberParser.
Service to get the IValueHostConfigMergeService instance that determines how to merge ValueHost configurations from business logic and UI.
Service to get the IValueHostConfigMergeService instance that determines how to merge ValueHost configurations from business logic and UI.
Service to text localization specific, effectively mapping a text key to a language specific version of that text. Error messages and IDataTypeFormatters use this. Defaults to using TextLocalizerServices class. If you use a third party localization system, you may prefer to use that here. Implement ITextLocalizerService around that third party library.
Service to text localization specific, effectively mapping a text key to a language specific version of that text. Error messages and IDataTypeFormatters use this.
The ValueHostFactory to use. It supplies a default if not setup by the user.
Factory for generating classes that implement IValueHost that use ValueHostConfig.
Creates the ManagerConfigBuilder instances. Defaults to using ManagerConfigBuilderFactory.
Creates the ManagerConfigBuilder instances.
Creates the ManagerConfigModifier instances. Defaults to using ManagerConfigModifierFactory.
Creates the ManagerConfigModifier instances.
Returns the service by its name identifier. Returns null if the name identifier is unregistered.
Will be a case insensitive match
Do not keep a reference to a service elsewhere, unless it is a WeakRef. Expectation is the instance is owned by the Services object, and it will handle disposal.
Adds or replaces a service. If the supplied service implements IServicesAccessor, its own services property is assigned to this ValidationServices instance.
name that identifies this service and will be used in getService().
the service. It can be a class, object, or primitive. Will be a case insensitive match
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.
Protected
defaultProtected
defaultGenerated using TypeDoc v0.25.12
Supplies services and tools to be used as dependency injection into the classes of this system. It also supplies factories. There are many configuration choices involved. Its best to have a function that creates a ValidationService with its configuration together. Copy the /starter_code/create_services.ts file into your app. It contains such a function, createValidationServices(). Edit that file to adjust your configuration.