public interface ValidationRule extends SyntaxTree
This class should be used when keeping references to specific rules.
| Modifier and Type | Method and Description |
|---|---|
Result |
executeOn(DslModel model)
Executes the validation rule on the given model.
|
Metadata |
getRootMetadata()
Returns the root node metadata of this validation rule.
|
ValidationRule |
registerOn(RuleRegistry registry)
Registers this rule on the given registry.
|
ValidationRule |
withShortCircuit(boolean shortCircuit)
Returns a validation rule with the given short circuit.
|
ValidationRule withShortCircuit(boolean shortCircuit)
shortCircuit - the short circuitResult executeOn(DslModel model)
model - the modelValidationRule registerOn(RuleRegistry registry)
registry - the registryMetadata getRootMetadata()