org.sonar.api.rules
Class ActiveRule

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

public class ActiveRule
extends java.lang.Object
implements java.lang.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
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.util.List<ActiveRuleParam> getActiveRuleParams()
           
 java.lang.String getConfigKey()
           
 java.lang.Integer getId()
           
 ActiveRuleParam getParameter(java.lang.String key)
           
 java.lang.String getPluginName()
          Deprecated. use getRepositoryKey()
 RulePriority getPriority()
           
 java.lang.String getRepositoryKey()
           
 Rule getRule()
           
 java.lang.String getRuleKey()
           
 RulesProfile getRulesProfile()
           
 int hashCode()
           
 void setActiveRuleParams(java.util.List<ActiveRuleParam> params)
          Deprecated. use setParameter()
 void setId(java.lang.Integer id)
          Deprecated. visibility should be decreased to protected or package
 ActiveRule setParameter(java.lang.String key, java.lang.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
 java.lang.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 java.lang.Integer getId()

setId

@Deprecated
public void setId(java.lang.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 java.util.List<ActiveRuleParam> getActiveRuleParams()

setActiveRuleParams

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


setParameter

public ActiveRule setParameter(java.lang.String key,
                               java.lang.String value)

getParameter

public ActiveRuleParam getParameter(java.lang.String key)

getPluginName

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


getRepositoryKey

public java.lang.String getRepositoryKey()

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.