DefaultValidator
Default implementation of a form control validator.
Used for controls that need no validation beyond the standard required/visibility checks implemented in the base class ControlValidator.
A "null object pattern" implementation - every control has a validator, even if it does no specific validation.
Type Parameters
T
type of the data held by the control
Functions
Link copied to clipboard
Checks whether the control is required, based on its configuration and dependencies.
Link copied to clipboard
Link copied to clipboard
private fun isDependencyMet(dependency: ControlDependency<*>, controlContext: ControlContext): Boolean
Link copied to clipboard
Checks whether the value is empty or not filled in.
Link copied to clipboard
internal open fun setupFormReferences(formState: FormState, formSchema: FormSchema, errorManager: ErrorManager)
Sets the form component references for the validator.
Link copied to clipboard
Main validation method of a control.
Link copied to clipboard
Does no additional validation.