Interface RuleConditionValidator
- All Known Implementing Classes:
RuleContainerConditionTranslator,RuleExecutableConditionTranslator,RuleGroupConditionTranslator
public interface RuleConditionValidator
Implementations of this interface are responsible for validating a rule condition. Information on compilation
problems is held in context
RuleCompilerContext.
If a compilation error occurs, creating and adding it to a context should normally use the following pattern:
final RuleCompilerProblem ruleCompilerProblem = ruleCompilerProblemFactory.createProblem(Severity.ERROR, errorMessage); context.addProblem(ruleCompilerProblem);
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Validates a rule condition.
-
Method Details
-
validate
void validate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Validates a rule condition.- Parameters:
context- - the compiler contextcondition- - the conditionconditionDefinition- - the condition definition
-