public interface ValidationRule extends DSLBuilder
This class should be used when keeping references to specific rules.
| Modifier and Type | Method and Description |
|---|---|
default Result |
execute()
Executes the validation rule on a null model.
|
Result |
executeOn(FieldModel model)
Executes the validation rule on the given model.
|
Result |
executeOn(FieldModel model,
Context context)
Executes the validation rule on the given model.
|
StepWhen |
getStepWhen()
Returns the root when node of this rule.
|
ValidationRule |
withShortCircuit(boolean shortCircuit)
Returns a validation rule with the given short circuit.
|
StepWhen getStepWhen()
ValidationRule withShortCircuit(boolean shortCircuit)
shortCircuit - the short circuitdefault Result execute()
Result executeOn(FieldModel model)
model - the modelResult executeOn(FieldModel model, Context context)
model - the modelcontext - custom context