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 booleandoValidate(Object submittedValue, FormFieldValidatorContext validatorContext) protected booleanshouldPerformPaContextSwitch(DelegateExecution execution) booleanvalidate(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:FormFieldValidatorreturn true if the submitted value is valid for the given form field.- Specified by:
validatein 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
-