Interface ValidationEnum.Builder

  • Method Details

    • strict

      Boolean that defaults to false. When true, only values specified in the enum list are allowed. When false, custom values beyond the enumerated list are permitted.

      Parameters:
      strict - Boolean that defaults to false. When true, only values specified in the enum list are allowed. When false, custom values beyond the enumerated list are permitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.

      Parameters:
      values - A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      ValidationEnum.Builder values(String... values)

      A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.

      Parameters:
      values - A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.