Class PositiveValidator<T extends Number>
java.lang.Object
io.jmix.flowui.component.validation.AbstractValidator<T>
io.jmix.flowui.component.validation.PositiveValidator<T>
- All Implemented Interfaces:
Validator<T>
,Consumer<T>
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Component("flowui_PositiveValidator")
@Scope("prototype")
public class PositiveValidator<T extends Number>
extends AbstractValidator<T>
-
Field Summary
Fields inherited from class io.jmix.flowui.component.validation.AbstractValidator
applicationContext, currentAuthentication, datatypeRegistry, defaultMessage, message, messages, substitutor
-
Constructor Summary
-
Method Summary
Methods inherited from class io.jmix.flowui.component.validation.AbstractValidator
afterPropertiesSet, fireValidationException, fireValidationException, formatValue, getMessage, getTemplateErrorMessage, setApplicationContext, setMessage
-
Constructor Details
-
PositiveValidator
public PositiveValidator() -
PositiveValidator
Constructor for custom error message. This message can contain '${value}' key for formatted output.Example: "Value '${value}' should be greater than 0".
- Parameters:
message
- error message
-
-
Method Details
-
accept
Description copied from interface:Validator
Checks a value.- Parameters:
value
- a value- Throws:
ValidationException
-