BigDecimalValidator

class BigDecimalValidator(val validationOptions: BigDecimalValidation? = null) : ControlValidator<BigDecimal>

Validator of high-precision number (BigDecimal) controls, with validation options.

Constructors

Link copied to clipboard
constructor(validationOptions: BigDecimalValidation? = null)

Properties

Link copied to clipboard
protected lateinit var errorManager: ErrorManager
Link copied to clipboard
protected lateinit var formSchema: FormSchema
Link copied to clipboard
protected lateinit var formState: FormState
Link copied to clipboard

Functions

Link copied to clipboard
internal fun isControlRequired(control: Control<*>, controlContext: ControlContext): Boolean

Checks whether the control is required, based on its configuration and dependencies.

Link copied to clipboard
internal fun isControlVisible(control: Control<*>, controlContext: ControlContext): Boolean
Link copied to clipboard
private fun isDependencyMet(dependency: ControlDependency<*>, controlContext: ControlContext): Boolean
Link copied to clipboard
internal fun isValueEmpty(value: Any?): Boolean

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
open fun validate(controlContext: ControlContext, state: ControlState<*>, control: Control<*>)

Main validation method of a control.

Link copied to clipboard
open override fun validateSpecific(controlContext: ControlContext, value: BigDecimal)

Validation specific to the control type, run for a non-null value.