Class DecimalMinValidator<T>
java.lang.Object
io.jmix.flowui.component.validation.AbstractValidator<T>
io.jmix.flowui.component.validation.DecimalMinValidator<T>
- All Implemented Interfaces:
- Validator<T>,- Consumer<T>,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.ApplicationContextAware
@Component("flowui_DecimalMinValidator")
@Scope("prototype")
public class DecimalMinValidator<T>
extends AbstractValidator<T>
implements org.springframework.beans.factory.InitializingBean
- 
Field SummaryFieldsFields inherited from class io.jmix.flowui.component.validation.AbstractValidatorapplicationContext, currentAuthentication, datatypeRegistry, defaultMessage, message, messages, substitutor
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor with default error message.DecimalMinValidator(BigDecimal min, String message) Constructor with custom error message.
- 
Method SummaryModifier and TypeMethodDescriptionvoidChecks a value.protected voidfireValidationException(T value) getMin()booleanvoidsetInclusive(boolean inclusive) Set to true if the value must be greater than or equal to the specified minimum.voidsetMin(BigDecimal min) Sets min value.voidsetMin(BigDecimal min, boolean inclusive) Sets min value and inclusive option.Methods inherited from class io.jmix.flowui.component.validation.AbstractValidatorafterPropertiesSet, fireValidationException, fireValidationException, formatValue, getMessage, getTemplateErrorMessage, setApplicationContext, setMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet
- 
Field Details- 
min
- 
inclusiveprotected boolean inclusive
 
- 
- 
Constructor Details- 
DecimalMinValidatorpublic DecimalMinValidator()
- 
DecimalMinValidatorConstructor with default error message.- Parameters:
- min- min value
 
- 
DecimalMinValidatorConstructor with custom error message. This message can contain '${value}', and '${min}' keys for formatted output.Example: "Value '${value}' should be greater than or equal to '${min}'". - Parameters:
- min- min value
- message- error message
 
 
- 
- 
Method Details- 
setMinSets min value.- Parameters:
- min- min value
 
- 
getMin- Returns:
- min value
 
- 
setMinSets min value and inclusive option.- Parameters:
- min- min value
- inclusive- inclusive option
 
- 
setInclusivepublic void setInclusive(boolean inclusive) Set to true if the value must be greater than or equal to the specified minimum. Default value is true.- Parameters:
- inclusive- inclusive option
 
- 
isInclusivepublic boolean isInclusive()- Returns:
- true if the value must be greater than or equal to the specified minimum
 
- 
acceptDescription copied from interface:ValidatorChecks a value.
- 
fireValidationException
 
-