Class BeanPropertyValidator
java.lang.Object
io.jmix.flowui.component.validation.bean.AbstractBeanValidator
io.jmix.flowui.component.validation.bean.BeanPropertyValidator
@Scope("prototype")
@Component("flowui_BeanPropertyValidator")
public class BeanPropertyValidator
extends AbstractBeanValidator
Validator that applies JSR 303 rules for
Automatically added on data binding if property enclosing class has validation constraints.
HasValue
instance. Automatically added on data binding if property enclosing class has validation constraints.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.component.validation.bean.AbstractBeanValidator
AbstractBeanValidator.BeanValidationViolationCause
-
Field Summary
Fields inherited from class io.jmix.flowui.component.validation.bean.AbstractBeanValidator
beanClass, beanProperty, messages, messageTools, metadata, validationErrorMessage, validationGroups, validator
-
Constructor Summary
ConstructorDescriptionBeanPropertyValidator
(Class beanClass, String beanProperty) BeanPropertyValidator
(Class beanClass, String beanProperty, Class[] validationGroups) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
setMessages
(Messages messages) protected void
setMessageTools
(MessageTools messageTools) protected void
setMetadata
(Metadata metadata) protected void
setValidator
(javax.validation.Validator validator) Methods inherited from class io.jmix.flowui.component.validation.bean.AbstractBeanValidator
accept, getDefaultErrorMessage, getValidationErrorMessage, getValidationGroups, setValidationErrorMessage, setValidationGroups
-
Constructor Details
-
BeanPropertyValidator
-
BeanPropertyValidator
-
-
Method Details
-
setMetadata
-
setMessages
-
setMessageTools
-
setValidator
@Autowired protected void setValidator(javax.validation.Validator validator)
-