public class RuleProcedureSet extends RuleProcedure
Every set procedure can also be used to define a rule: the set is evaluated for the model element to check, and any elements it contains are reported as violation.
Constructor and Description |
---|
RuleProcedureSet() |
Modifier and Type | Method and Description |
---|---|
void |
checkRule(ModelElement element,
Rule rule)
Checks the rule for a model element.
|
getMinExpressionValue, getRuleEngine, getRuleValue, getValuesCache, reportViolation
evalBooleanExpression, evalElementSetExpression, evalExpression, evalSetExpression, getFilterAttributeProcessor, getMetaModel, getMetricsEngine, getModel, getRelationOrSet, isCompatible
public void checkRule(ModelElement element, Rule rule) throws SDMetricsException
RuleProcedure
checkRule
in class RuleProcedure
element
- The element to check.rule
- The rule to check.SDMetricsException
- Problem while checking the rule