Class ValidatorLoadFactory
java.lang.Object
io.jmix.flowui.component.validation.ValidatorLoadFactory
Specific bean for loading validators.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected LoaderSupport
protected MessageTools
protected final Map<String,
BiFunction<org.dom4j.Element, String, Validator<?>>> -
Constructor Summary
ConstructorDescriptionValidatorLoadFactory
(org.springframework.context.ApplicationContext applicationContext, MessageTools messageTools, LoaderSupport loaderSupport) -
Method Summary
Modifier and TypeMethodDescriptioncreateValidator
(org.dom4j.Element element, String messageGroup) Creates validator from XML 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 Validator
loadMaxValidator
(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)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messageTools
-
loaderSupport
-
validatorsMap
-
-
Constructor Details
-
ValidatorLoadFactory
public ValidatorLoadFactory(org.springframework.context.ApplicationContext applicationContext, MessageTools messageTools, LoaderSupport loaderSupport)
-
-
Method Details
-
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
-