Class BeanPropertyValidator

java.lang.Object
io.jmix.ui.component.validator.AbstractBeanValidator
io.jmix.ui.component.validator.BeanPropertyValidator
All Implemented Interfaces:
Validator, Consumer

@Scope("prototype") @Component("ui_BeanPropertyValidator") public class BeanPropertyValidator extends AbstractBeanValidator
Validator that applies JSR 303 rules for HasValue instance.
Automatically added on data binding if property enclosing class has validation constraints.
  • Constructor Details

    • BeanPropertyValidator

      public BeanPropertyValidator(Class beanClass, String beanProperty)
    • BeanPropertyValidator

      public BeanPropertyValidator(Class beanClass, String beanProperty, Class[] validationGroups)
  • Method Details

    • setMetadata

      @Autowired protected void setMetadata(Metadata metadata)
    • setMessages

      @Autowired protected void setMessages(Messages messages)
    • setMessageTools

      @Autowired protected void setMessageTools(MessageTools messageTools)
    • setValidator

      @Autowired protected void setValidator(javax.validation.Validator validator)