Package io.jmix.ui.component.validation
Class ValidatorLoadFactory
java.lang.Object
io.jmix.ui.component.validation.ValidatorLoadFactory
Specific bean for loading validators.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected MessageTools
protected final Map<String,
BiFunction<org.dom4j.Element, String, Validator>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateValidator
(org.dom4j.Element element, String messageGroup) Creates validator from XML element.protected Boolean
loadCheckSeconds
(org.dom4j.Element element) protected Validator
loadCustomValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadDecimalMaxValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadDecimalMinValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadDigitsValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadDoubleMaxValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadDoubleMinValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadFutureOrPresentValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadFutureValidator
(org.dom4j.Element element, String messageGroup) protected Boolean
loadInclusive
(org.dom4j.Element element) protected Validator
loadMaxValidator
(org.dom4j.Element element, String messageGroup) protected String
loadMessage
(org.dom4j.Element element, String messageGroup) protected Validator
loadMinValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadPastOrPresentValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadPastValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadRegexpValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadSizeValidator
(org.dom4j.Element element, String messageGroup) protected Validator
loadValidatorWithoutAttributes
(org.dom4j.Element element, String messageGroup) protected void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) protected void
setMessageTools
(MessageTools messageTools)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messageTools
-
validatorsMap
-
-
Constructor Details
-
ValidatorLoadFactory
public ValidatorLoadFactory()
-
-
Method Details
-
setApplicationContext
@Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setMessageTools
-
createValidator
Creates validator from XML element.- Parameters:
element
- validator elementmessageGroup
- message group- Returns:
- validator or null if there is no such element
-
loadCustomValidator
-
loadDecimalMinValidator
-
loadDecimalMaxValidator
-
loadDoubleMinValidator
-
loadDoubleMaxValidator
-
loadDigitsValidator
-
loadFutureValidator
-
loadFutureOrPresentValidator
-
loadPastValidator
-
loadPastOrPresentValidator
-
loadMaxValidator
-
loadMinValidator
-
loadValidatorWithoutAttributes
-
loadRegexpValidator
-
loadSizeValidator
-
loadInclusive
-
loadCheckSeconds
-
loadMessage
-