public class Rule extends MetricEntry
attributes, description, id, location, name, procedureName
Constructor and Description |
---|
Rule(java.lang.String name,
MetaModelElement type,
java.lang.String category,
java.lang.String criticality,
java.util.Collection<java.lang.String> appAreas,
boolean enabled)
Creates a new rule.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getApplicableAreas()
Gets the application areas of the rule.
|
java.lang.String |
getCategory()
Gets the category of this rule.
|
java.lang.String |
getCriticality()
Gets the criticality of this rule.
|
MetaModelElement |
getType()
Gets the element type for which this rule is defined.
|
boolean |
isEnabled()
Tests whether this rule is enabled to not.
|
java.lang.String |
toString()
Returns a string representation of the rule.
|
getAttributes, getBriefDescription, getFullDescription, getLocation, getName, getProcedureName
public Rule(java.lang.String name, MetaModelElement type, java.lang.String category, java.lang.String criticality, java.util.Collection<java.lang.String> appAreas, boolean enabled)
name
- Name of the rule.type
- Metamodel element type of the elements for which this rule is
defined.category
- The category of the rule.criticality
- The criticality of the rule.appAreas
- The application areas of the rule.enabled
- Indicates whether or not this rule is enabled and should
be checked.public java.lang.String getCategory()
public java.lang.String getCriticality()
public MetaModelElement getType()
public boolean isEnabled()
true
if this rule is enabled.public java.util.Collection<java.lang.String> getApplicableAreas()
null
if none
have been specified.public java.lang.String toString()
toString
in class java.lang.Object