ValidationBuilder

A builder for creating VGSInfoRules.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds the validation rule.

Link copied to clipboard
fun setAlgorithm(algorithm: ChecksumAlgorithm, errorMsg: String = CheckSumValidator.DEFAULT_ERROR_MSG): VGSInfoRule.ValidationBuilder

Sets the checksum algorithm for validation.

Link copied to clipboard

Sets the maximum allowable length.

Link copied to clipboard

Sets the minimum allowable length.

Link copied to clipboard
fun setRegex(regex: String, errorMsg: String = RegexValidator.DEFAULT_ERROR_MSG): VGSInfoRule.ValidationBuilder

Sets the regex for validation.