Package io.jmix.ui.component.validation
Class ValidatorLoadFactory
java.lang.Object
io.jmix.ui.component.validation.ValidatorLoadFactory
Specific bean for loading validators.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected MessageToolsprotected final Map<String,BiFunction<org.dom4j.Element, String, Validator>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateValidator(org.dom4j.Element element, String messageGroup) Creates validator from XML element.protected BooleanloadCheckSeconds(org.dom4j.Element element) protected ValidatorloadCustomValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadDecimalMaxValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadDecimalMinValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadDigitsValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadDoubleMaxValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadDoubleMinValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadFutureOrPresentValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadFutureValidator(org.dom4j.Element element, String messageGroup) protected BooleanloadInclusive(org.dom4j.Element element) protected ValidatorloadMaxValidator(org.dom4j.Element element, String messageGroup) protected StringloadMessage(org.dom4j.Element element, String messageGroup) protected ValidatorloadMinValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadPastOrPresentValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadPastValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadRegexpValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadSizeValidator(org.dom4j.Element element, String messageGroup) protected ValidatorloadValidatorWithoutAttributes(org.dom4j.Element element, String messageGroup) protected voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidsetMessageTools(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
-