public interface ValidatorConditionCallback
Modifier and Type | Method and Description |
---|---|
boolean |
execute(DataSourceField item,
Validator validator,
java.lang.Object value,
java.util.Map record,
java.util.Map additionalContext)
Callback required for the property Validator.condition and
ValidatorDefinition.condition. |
boolean execute(DataSourceField item, Validator validator, java.lang.Object value, java.util.Map record, java.util.Map additionalContext)
Callback
required for the property Validator.condition
and
ValidatorDefinition.condition.item
- FormItem, DataSourceField or ListGridField on which this validator was
declared. NOTE: FormItem will not be available during a save performed without
a form (eg programmatic save) or if the field
is not available in the form.validator
- Validator declaration from eg DataSourceField.validators
.value
- value to validaterecord
- Field values for record being validated.additionalContext
- Object containing extra context which may be useful to the condition function.
Contains the following properties: