A factory constructor for creating a ContainsValidator.
The contains parameter specifies the string that the value being validated should contain.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a ContainsNumbersValidator.
The containsNumbers parameter specifies the string that the value being validated should contain.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating an EndWithValidator.
The endWith parameter specifies the string that the value being validated should end with.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating an EqualToValidator.
The equalTo parameter specifies the string that the value being validated should be equal to.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a MaxWordCountValidator.
The maxWordCount parameter specifies the maximum number of words that the value being validated should have.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a MinWordCountValidator.
The minWordCount parameter specifies the minimum number of words that the value being validated should have.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a NotContainsValidator.
The notContains parameter specifies the string that the value being validated should not contain.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a NotEndWithValidator.
The notEndWith parameter specifies the string that the value being validated should not end with.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a NotEqualLengthValidator.
The length parameter specifies the length that the value being validated should not have.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a NotEqualToValidator.
The notEqualTo parameter specifies the string that the value being validated should not be equal to.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage:
A factory constructor for creating a NotStartWithValidator.
The notStartWith parameter specifies the string that the value being validated should not start with.
The errorMessage parameter is an optional error message to be displayed if the validation fails.
Example usage: