Class AbstractBeanValidator
java.lang.Object
io.jmix.flowui.component.validation.bean.AbstractBeanValidator
- Direct Known Subclasses:
BeanPropertyValidator
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBeanValidator
(Class beanClass, String beanProperty) protected
AbstractBeanValidator
(Class beanClass, String beanProperty, Class[] validationGroups) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks a value.Class[]
void
setValidationErrorMessage
(String validationErrorMessage) Set main validation error message.void
setValidationGroups
(Class[] validationGroups) Set custom validation groups.
-
Field Details
-
beanClass
-
beanProperty
-
validationErrorMessage
-
validationGroups
-
metadata
-
messages
-
messageTools
-
validator
protected javax.validation.Validator validator
-
-
Constructor Details
-
AbstractBeanValidator
-
AbstractBeanValidator
-
-
Method Details
-
getValidationGroups
-
setValidationGroups
Set custom validation groups. If not set validator usesDefault
andUiComponentChecks
groups.- Parameters:
validationGroups
- validation groups
-
getValidationErrorMessage
-
setValidationErrorMessage
Set main validation error message. Useful only for custom validation in screen controller.- Parameters:
validationErrorMessage
- validation error message
-
accept
Description copied from interface:Validator
Checks a value. -
getDefaultErrorMessage
-