www.sdmetrics.com

com.sdmetrics.metrics
Class RuleProcedureSet

java.lang.Object
  extended by com.sdmetrics.metrics.AbstractProcedure
      extended by com.sdmetrics.metrics.RuleProcedure
          extended by com.sdmetrics.metrics.RuleProcedureSet

public class RuleProcedureSet
extends RuleProcedure

Checks rules based on set procedures.

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 Summary
RuleProcedureSet()
           
 
Method Summary
 void checkRule(ModelElement element, Rule rule)
          Checks the rule for a model element.
 
Methods inherited from class com.sdmetrics.metrics.RuleProcedure
getMinExpressionValue, getRuleEngine, getRuleValue, getValuesCache, reportViolation
 
Methods inherited from class com.sdmetrics.metrics.AbstractProcedure
evalBooleanExpression, evalElementSetExpression, evalExpression, evalSetExpression, getFilterAttributeProcessor, getMetaModel, getMetricsEngine, getModel, getRelationOrSet, isCompatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleProcedureSet

public RuleProcedureSet()
Method Detail

checkRule

public void checkRule(ModelElement element,
                      Rule rule)
               throws SDMetricsException
Description copied from class: RuleProcedure
Checks the rule for a model element.

Specified by:
checkRule in class RuleProcedure
Parameters:
element - The element to check.
rule - The rule to check.
Throws:
SDMetricsException - Problem while checking the rule

www.sdmetrics.com