www.sdmetrics.com

com.sdmetrics.metrics
Class RuleProcedureViolation

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

public class RuleProcedureViolation
extends RuleProcedure

Checks a "violation" rule with a simple rule condition.


Constructor Summary
RuleProcedureViolation()
           
 
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

RuleProcedureViolation

public RuleProcedureViolation()
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