org.sonar.api.rules
Class ActiveRule
java.lang.Object
org.sonar.api.database.BaseIdentifiable
org.sonar.api.rules.ActiveRule
- All Implemented Interfaces:
- java.lang.Cloneable
public class ActiveRule
- extends BaseIdentifiable
- implements java.lang.Cloneable
A class to map an ActiveRule to the hibernate model
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ActiveRule
public ActiveRule()
ActiveRule
public ActiveRule(RulesProfile profile,
Rule rule,
RulePriority priority)
- Creates an ActiveRule
- Parameters:
profile
- the profile the rule is activated inrule
- the rule that is activepriority
- the priority of the rule within the profile
getRule
public Rule getRule()
setRule
public void setRule(Rule rule)
getPriority
public RulePriority getPriority()
setPriority
public void setPriority(RulePriority priority)
getRulesProfile
public RulesProfile getRulesProfile()
setRulesProfile
public void setRulesProfile(RulesProfile rulesProfile)
getActiveRuleParams
public java.util.List<ActiveRuleParam> getActiveRuleParams()
setActiveRuleParams
public void setActiveRuleParams(java.util.List<ActiveRuleParam> params)
- Sets the list of parameters for the active rule
getPluginName
public java.lang.String getPluginName()
- Returns:
- the name of the plugin the active rule belongs to
getConfigKey
public java.lang.String getConfigKey()
- Returns:
- the config key the active rule belongs to
getRuleKey
public java.lang.String getRuleKey()
- Returns:
- the key of the active rule
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
Copyright © 2009-2010 SonarSource. All Rights Reserved.