Class DelegateFormFieldValidator
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.validator.DelegateFormFieldValidator
-
- All Implemented Interfaces:
FormFieldValidator
public class DelegateFormFieldValidator extends java.lang.Object implements 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 Modifier and Type Field Description protected java.lang.String
clazz
protected Expression
delegateExpression
-
Constructor Summary
Constructors Constructor Description DelegateFormFieldValidator()
DelegateFormFieldValidator(java.lang.String clazz)
DelegateFormFieldValidator(Expression expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doValidate(java.lang.Object submittedValue, FormFieldValidatorContext validatorContext)
protected boolean
shouldPerformPaContextSwitch(DelegateExecution execution)
boolean
validate(java.lang.Object submittedValue, FormFieldValidatorContext validatorContext)
return true if the submitted value is valid for the given form field.
-
-
-
Field Detail
-
clazz
protected java.lang.String clazz
-
delegateExpression
protected Expression delegateExpression
-
-
Constructor Detail
-
DelegateFormFieldValidator
public DelegateFormFieldValidator(Expression expression)
-
DelegateFormFieldValidator
public DelegateFormFieldValidator(java.lang.String clazz)
-
DelegateFormFieldValidator
public DelegateFormFieldValidator()
-
-
Method Detail
-
validate
public boolean validate(java.lang.Object submittedValue, FormFieldValidatorContext validatorContext)
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
protected boolean shouldPerformPaContextSwitch(DelegateExecution execution)
-
doValidate
protected boolean doValidate(java.lang.Object submittedValue, FormFieldValidatorContext validatorContext)
-
-