Class DelegateFormFieldValidator
java.lang.Object
org.camunda.bpm.engine.impl.form.validator.DelegateFormFieldValidator
- All Implemented Interfaces:
FormFieldValidator
FormFieldValidator
delegating to a custom, user-provided validator implementation.
The implementation is resolved either using a fully qualified classname of a Java Class
or using a java delegate implementation.- Author:
- Daniel Meyer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDelegateFormFieldValidator
(String clazz) DelegateFormFieldValidator
(Expression expression) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doValidate
(Object submittedValue, FormFieldValidatorContext validatorContext) protected boolean
shouldPerformPaContextSwitch
(DelegateExecution execution) boolean
validate
(Object submittedValue, FormFieldValidatorContext validatorContext) return true if the submitted value is valid for the given form field.
-
Field Details
-
clazz
-
delegateExpression
-
-
Constructor Details
-
DelegateFormFieldValidator
-
DelegateFormFieldValidator
-
DelegateFormFieldValidator
public DelegateFormFieldValidator()
-
-
Method Details
-
validate
Description copied from interface:FormFieldValidator
return true if the submitted value is valid for the given form field.- Specified by:
validate
in interfaceFormFieldValidator
- Parameters:
submittedValue
- the value submitted to the form fieldvalidatorContext
- object providing access to additional information useful wile validating the form- Returns:
- true if the value is valid, false otherwise.
-
shouldPerformPaContextSwitch
-
doValidate
-