org.sonar.api.rules
Class ActiveRule

java.lang.Object
  extended by org.sonar.api.rules.ActiveRule
All Implemented Interfaces:
Cloneable

public class ActiveRule
extends Object
implements Cloneable

A class to map an ActiveRule to the hibernate model


Constructor Summary
ActiveRule()
          Deprecated. visibility should be reduced to protected or package
ActiveRule(RulesProfile profile, Rule rule, RulePriority priority)
          Deprecated. visibility should be reduced to protected or package
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 List<ActiveRuleParam> getActiveRuleParams()
           
 String getConfigKey()
           
 Integer getId()
           
 String getParameter(String key)
           
 String getPluginName()
          Deprecated. use getRepositoryKey()
 RulePriority getPriority()
           
 String getRepositoryKey()
           
 Rule getRule()
           
 String getRuleKey()
           
 RulesProfile getRulesProfile()
           
 int hashCode()
           
 void setActiveRuleParams(List<ActiveRuleParam> params)
          Deprecated. use setParameter()
 void setId(Integer id)
          Deprecated. visibility should be decreased to protected or package
 ActiveRule setParameter(String key, String value)
           
 void setPriority(RulePriority priority)
           
 void setRule(Rule rule)
          Deprecated. visibility should be reduced to protected or package
 void setRulesProfile(RulesProfile rulesProfile)
          Deprecated. visibility should be reduced to protected or package
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveRule

@Deprecated
public ActiveRule()
Deprecated. visibility should be reduced to protected or package


ActiveRule

@Deprecated
public ActiveRule(RulesProfile profile,
                             Rule rule,
                             RulePriority priority)
Deprecated. visibility should be reduced to protected or package

Method Detail

getId

public Integer getId()

setId

@Deprecated
public void setId(Integer id)
Deprecated. visibility should be decreased to protected or package


getRule

public Rule getRule()

setRule

@Deprecated
public void setRule(Rule rule)
Deprecated. visibility should be reduced to protected or package


getPriority

public RulePriority getPriority()

setPriority

public void setPriority(RulePriority priority)

getRulesProfile

public RulesProfile getRulesProfile()

setRulesProfile

@Deprecated
public void setRulesProfile(RulesProfile rulesProfile)
Deprecated. visibility should be reduced to protected or package


getActiveRuleParams

public List<ActiveRuleParam> getActiveRuleParams()

setActiveRuleParams

@Deprecated
public void setActiveRuleParams(List<ActiveRuleParam> params)
Deprecated. use setParameter()


setParameter

public ActiveRule setParameter(String key,
                               String value)

getParameter

public String getParameter(String key)

getPluginName

@Deprecated
public String getPluginName()
Deprecated. use getRepositoryKey()


getRepositoryKey

public String getRepositoryKey()

getConfigKey

public String getConfigKey()
Returns:
the config key the active rule belongs to

getRuleKey

public String getRuleKey()
Returns:
the key of the active rule

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2009-2010 SonarSource. All Rights Reserved.