Expected to be called internally by ValueHostsManager/ValidationManager, which supplies the current ValueHostsConfig object. It will be cloned, and not modified directly.
Protected servicesProtected loggerProvides an API for logging, sending entries to the loggerService.
Protected baseProtected overriddenA ValueHostManagerConfig that is getting overridden ValueHost configurations. Each are created by the addOverride() function. They retain a reference to services.
Protected assertProtected addProtected destinationExposes the ValueHostsConfig currently capturing content.
Protected applyTrack a new ValueHostConfig in the destinationConfig.
Protected getGets a ValueHostConfig with matching name by looking in previous overrides and the baseConfig. Goal is to find a ValueHostConfig that existed prior to creating the Modifier or using addOverride().
Protected addUtility to use the Fluent system to add a ValueHostConfig to the ValueHostsManagerConfig.
Optional arg2: null | string | Partial<TVHConfig>Optional arg3: Partial<TVHConfig>Protected assertAttaches an enabler Condition to a ValueHost. The Enabler Condition is actually a ConditionConfig object used to create the Condition. This is used to enable or disable the ValueHost based on the condition. If called on a ValueHost already with an enabler, it will replace the existing enabler.
An actual conditionConfig
Using the Builder API
A function that will build the conditionConfig with the Builder API
Protected addFluent format to create any ValueHostConfig based upon ValidatorsValueHostBaseConfig. This is the start of a fluent series. Extend series with validation rules like "required()". Protected because ValueHostManager does not support InputValueHost. ValidationManager offers a public interface.
the ValueHostType to configure
either the ValueHost name for a multiparameter use or InputValueConfig for a single parameter use.
Optional arg2: null | string | Partial<TVHConfig>optional and can be null. The value for ValueHost.dataType or InputValueHostConfig.
Optional arg3: Partial<TVHConfig>optional. Any additional properties of a InputValueHostConfig.
FluentValidatorBuilder for chaining validators to initial InputValueHost
Protected combineCombines a condition with a ValidatorConfig's condition using a rule supplied or callback to let you create a conditionConfig.
The resulting ValidatorConfig's errorCode will not have changed from the original to ensure it aligns with everything depending on the original error code.
the conditionConfig that you want to combine with the new condition.
Either of these:
Optional arg3: ((combiningBuilder) => void)create the condition that you want to combine with the existing condition.
Protected confirmProtected replaceUpdates the conditionConfig property of destinationOfCondition where the replacement is either a conditionConfig or using a Builder object.
If it finds the validator with the errorcode specified, it will replace the condition with the existing condition. If not, it logs and throws an error. If the ValueHost is on an earlier override or baseConfig, a new entry is made in the current override, reflecting the same data as earlier, but now with a modified validator. If the ValueHost is on the current override, the existing entry is modified.
The resulting ValidatorConfig's errorCode will not have changed from the original to ensure it aligns with everything depending on the original error code.
Either of these:
Protected setupReturns a ValueHostConfig that is already in the destinationValueHostConfigs with the desired validatorConfig. If it cannot match both valueHostName and errorCode, it will throw an error.
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.
Completes the process by using ValueHostManager.addOrMergeValueHost() on each entry supplied. That function internally uses ValueHostsConfigMergeService when the ValueHost exists. After this function completes, this instance has been disposed (via dispose() function) and the instance should not be used further. Any reference to a ValueHost instance that you have must be abandoned and a fresh instance retrieved, as your reference was disposed.
Protected createSupplies the ValidationManagerStartFluent object, already setup
Protected ensureConfirms the config is of the expected type. Update a specific valueHost's properties.
Protected identifyProtected prepUtility for calls to existing static(), input(), calc(), and property() functions that provide defenses against bad data.
Optional arg2: null | string | FluentStaticParametersOptional parameters: FluentStaticParametersOn update, need some defenses against incoming data.
Optional arg2: null | string | FluentStaticParametersOptional arg3: FluentStaticParametersOn update, need some defenses against incoming data.
Optional dataType: null | stringOptional calcFn: CalculationHandlerGenerated using TypeDoc v0.25.12
Used by ValueHostManager.startModifying() function to modify the ValueHostsManagerConfig.valueHostConfigs array. It does not change the original until you call its apply() function. Apply() makes its updates through ValueHostsManager.addOrMergeValueHost().
Remarks
The baseConfig object is setup with the existing ValueHostConfigs from the originating manager. Then an override is added to the overriddenValueHostConfigs, which will be modified as ValueHostConfigs are added. The existingValueHostConfigs are never modified directly. The overridden ones are used to replace them later.