Class FormValidators
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.validator.FormValidators
-
public class FormValidators extends java.lang.Object
Registry for built-in
FormFieldValidator
implementations.Factory for
FormFieldValidator
instances.- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Class<? extends FormFieldValidator>>
validators
the registry of configured validators.
-
Constructor Summary
Constructors Constructor Description FormValidators()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValidator(java.lang.String name, java.lang.Class<? extends FormFieldValidator> validatorType)
FormFieldValidator
createValidator(Element constraint, BpmnParse bpmnParse, ExpressionManager expressionManager)
factory method for creating validator instancesprotected FormFieldValidator
createValidatorInstance(java.lang.Class<? extends FormFieldValidator> validator)
java.util.Map<java.lang.String,java.lang.Class<? extends FormFieldValidator>>
getValidators()
-
-
-
Field Detail
-
validators
protected java.util.Map<java.lang.String,java.lang.Class<? extends FormFieldValidator>> validators
the registry of configured validators. Populated throughProcessEngineConfiguration
.
-
-
Method Detail
-
createValidator
public FormFieldValidator createValidator(Element constraint, BpmnParse bpmnParse, ExpressionManager expressionManager)
factory method for creating validator instances
-
createValidatorInstance
protected FormFieldValidator createValidatorInstance(java.lang.Class<? extends FormFieldValidator> validator)
-
addValidator
public void addValidator(java.lang.String name, java.lang.Class<? extends FormFieldValidator> validatorType)
-
getValidators
public java.util.Map<java.lang.String,java.lang.Class<? extends FormFieldValidator>> getValidators()
-
-