org.sonar.api.rules
Class ActiveRule

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by 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


Constructor Summary
ActiveRule()
           
ActiveRule(RulesProfile profile, Rule rule, RulePriority priority)
          Creates an ActiveRule
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.util.List<ActiveRuleParam> getActiveRuleParams()
           
 java.lang.String getConfigKey()
           
 java.lang.String getPluginName()
           
 RulePriority getPriority()
           
 Rule getRule()
           
 java.lang.String getRuleKey()
           
 RulesProfile getRulesProfile()
           
 int hashCode()
           
 void setActiveRuleParams(java.util.List<ActiveRuleParam> params)
          Sets the list of parameters for the active rule
 void setPriority(RulePriority priority)
           
 void setRule(Rule rule)
           
 void setRulesProfile(RulesProfile rulesProfile)
           
 java.lang.String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveRule

public ActiveRule()

ActiveRule

public ActiveRule(RulesProfile profile,
                  Rule rule,
                  RulePriority priority)
Creates an ActiveRule

Parameters:
profile - the profile the rule is activated in
rule - the rule that is active
priority - the priority of the rule within the profile
Method Detail

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.