Class DefaultFD2VRulesProvider
java.lang.Object
de.xima.fc.web.common.fd2.provider.DefaultFD2VRulesProvider
- All Implemented Interfaces:
IFD2VRulesProvider, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFD2VRulesProvider(Mandant man, Locale loc) DefaultFD2VRulesProvider(IFormRenderContext renderCtx) -
Method Summary
Modifier and TypeMethodDescriptioncom.alibaba.fastjson.JSONObjectcreateVRulesJSON(Locale loc) determineVRules(Locale loc) Executes the custom validation logic for a given validation rule.
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
DefaultFD2VRulesProvider
-
DefaultFD2VRulesProvider
-
-
Method Details
-
createVRulesJSON
- Specified by:
createVRulesJSONin interfaceIFD2VRulesProvider
-
determineVRules
- Specified by:
determineVRulesin interfaceIFD2VRulesProvider
-
executeValidationLogic
public XFormDatatypeValidationLogicRetVal executeValidationLogic(XFormDatatypeValidationLogicParams params) Description copied from interface:IFD2VRulesProviderExecutes the custom validation logic for a given validation rule. If the ruledoes not have custom validation logic, this method always returns a valid validation result.- Specified by:
executeValidationLogicin interfaceIFD2VRulesProvider- Parameters:
params- The parameters for the validation logic, containing the value to validate and the validation rule to apply.- Returns:
- The result of the validation logic, indicating whether the value is valid and providing an error message if it is not valid.
-