Class PositiveOrZeroValidator<T extends Number>

java.lang.Object
io.jmix.flowui.component.validation.AbstractValidator<T>
io.jmix.flowui.component.validation.PositiveOrZeroValidator<T>
All Implemented Interfaces:
Validator<T>, Consumer<T>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

@Component("flowui_PositiveOrZeroValidator") @Scope("prototype") public class PositiveOrZeroValidator<T extends Number> extends AbstractValidator<T>
  • Constructor Details

    • PositiveOrZeroValidator

      public PositiveOrZeroValidator()
    • PositiveOrZeroValidator

      public PositiveOrZeroValidator(String message)
      Constructor for custom error message. This message can contain '${value}' key for formatted output.

      Example: "Value '${value}' should be greater than or equal to 0".

      Parameters:
      message - error message
  • Method Details