Package io.jmix.ui.component.validator
Class BeanPropertyValidator
java.lang.Object
io.jmix.ui.component.validator.AbstractBeanValidator
io.jmix.ui.component.validator.BeanPropertyValidator
@Scope("prototype")
@Component("ui_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.ui.component.validator.AbstractBeanValidator
AbstractBeanValidator.BeanValidationViolationCause
-
Field Summary
Fields inherited from class io.jmix.ui.component.validator.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.ui.component.validator.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)
-