Class DefaultFD2VRulesProvider
- java.lang.Object
-
- de.xima.fc.web.common.fd2.provider.DefaultFD2VRulesProvider
-
- All Implemented Interfaces:
IFD2VRulesProvider,Serializable
public class DefaultFD2VRulesProvider extends Object implements IFD2VRulesProvider
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description DefaultFD2VRulesProvider(Mandant man, Locale loc)DefaultFD2VRulesProvider(IFormRenderContext renderCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.alibaba.fastjson.JSONObjectcreateVRulesJSON(Locale loc)Map<String,XFormPluginDatatypeRule>determineVRules(Locale loc)XFormDatatypeValidationLogicRetValexecuteValidationLogic(XFormDatatypeValidationLogicParams params)Executes the custom validation logic for a given validation rule.
-
-
-
Constructor Detail
-
DefaultFD2VRulesProvider
public DefaultFD2VRulesProvider(IFormRenderContext renderCtx)
-
-
Method Detail
-
createVRulesJSON
public com.alibaba.fastjson.JSONObject createVRulesJSON(Locale loc)
- Specified by:
createVRulesJSONin interfaceIFD2VRulesProvider
-
determineVRules
public Map<String,XFormPluginDatatypeRule> determineVRules(Locale loc)
- 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.
-
-