www.sdmetrics.com

com.sdmetrics.metrics
Class RuleViolation

java.lang.Object
  extended by com.sdmetrics.metrics.RuleViolation

public class RuleViolation
extends java.lang.Object

Stores details about the violation of one specific rule by one specific model element.


Constructor Summary
RuleViolation(ModelElement element, Rule rule, java.lang.Object value)
           
 
Method Summary
 ModelElement getModelElement()
          Gets the model element of this rule violation.
 Rule getRule()
          Gets the rule of this rule violation.
 java.lang.Object getValue()
          Gets the value for this rule violation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleViolation

public RuleViolation(ModelElement element,
                     Rule rule,
                     java.lang.Object value)
Parameters:
element - The violating model element.
rule - The violated rule.
value - Value of the rule violation.
Method Detail

getModelElement

public ModelElement getModelElement()
Gets the model element of this rule violation.

Returns:
The violating model element.

getRule

public Rule getRule()
Gets the rule of this rule violation.

Returns:
The violated rule.

getValue

public java.lang.Object getValue()
Gets the value for this rule violation.

Returns:
Value of the rule describing the violation.

www.sdmetrics.com