Defines a maximum value constraint for Int
values, i.
Defines a maximum value constraint for Int
values, i.e. value must be less than or equal to the constraint parameter
name[constraint.max(maxValue)] error[error.max(maxValue)]
Defines a maximum length constraint for String
values, i.
Defines a maximum length constraint for String
values, i.e. the string’s length must be less than or equal to the constraint parameter
name[constraint.maxLength(length)] error[error.maxLength(length)]
Defines a minimum value for Int
values, i.
Defines a minimum value for Int
values, i.e. the value must be greater than or equal to the constraint parameter
name[constraint.min(minValue)] error[error.min(minValue)]
Defines a minimum length constraint for String
values, i.
Defines a minimum length constraint for String
values, i.e. the string’s length must be greater than or equal to the constraint parameter
name[constraint.minLength(length)] error[error.minLength(length)]
Defines a ‘required’ constraint for String
values, i.
Defines a ‘required’ constraint for String
values, i.e. one in which empty strings are invalid.
name[constraint.required] error[error.required]
Defines a regular expression constraint for String
values, i.
Defines a regular expression constraint for String
values, i.e. the string must match the regular expression pattern
name[constraint.pattern(regex)] or defined by the name parameter. error[error.pattern(regex)] or defined by the error parameter.
Defines a set of built-in constraints.