Interface ConditionalValidation.Builder

  • Method Details

    • minLength

      ConditionalValidation.Builder minLength(Integer minLength)

      The minimum length for the field value when this rule applies.

      Parameters:
      minLength - The minimum length for the field value when this rule applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxLength

      ConditionalValidation.Builder maxLength(Integer maxLength)

      The maximum length for the field value when this rule applies.

      Parameters:
      maxLength - The maximum length for the field value when this rule applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pattern

      A regular expression that the field value must match when this rule applies.

      Parameters:
      pattern - A regular expression that the field value must match when this rule applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedValues

      ConditionalValidation.Builder allowedValues(Collection<String> allowedValues)

      The allowed values for a select field when this rule applies. A subset of the field's full option list.

      Parameters:
      allowedValues - The allowed values for a select field when this rule applies. A subset of the field's full option list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedValues

      ConditionalValidation.Builder allowedValues(String... allowedValues)

      The allowed values for a select field when this rule applies. A subset of the field's full option list.

      Parameters:
      allowedValues - The allowed values for a select field when this rule applies. A subset of the field's full option list.
      Returns:
      Returns a reference to this object so that method calls can be chained together.