org.sonar.api.rules
Class Rule

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.rules.Rule

public class Rule
extends BaseIdentifiable


Field Summary
static RulePriority DEFAULT_PRIORITY
           
 
Constructor Summary
Rule()
           
Rule(String pluginName, String key)
           
Rule(String name, String key, RulesCategory rulesCategory, String pluginName, String description)
          Deprecated. 
Rule(String pluginKey, String key, String name, RulesCategory rulesCategory, RulePriority priority)
           
Rule(String name, String key, String configKey, RulesCategory rulesCategory, String pluginName, String description)
          Deprecated. 
 
Method Summary
 boolean equals(Object obj)
           
 Integer getCategoryId()
           
 String getConfigKey()
           
 String getDescription()
           
 String getKey()
           
 String getName()
           
 List<RuleParam> getParams()
           
 String getPluginName()
           
 RulePriority getPriority()
           
 RulesCategory getRulesCategory()
           
 int hashCode()
           
 Rule setConfigKey(String configKey)
           
 Rule setDescription(String description)
           
 Rule setKey(String key)
           
 Rule setName(String name)
           
 Rule setParams(List<RuleParam> params)
           
 Rule setPluginName(String pluginName)
           
 Rule setPriority(RulePriority priority)
           
 Rule setRulesCategory(RulesCategory rulesCategory)
           
 String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PRIORITY

public static final RulePriority DEFAULT_PRIORITY
Constructor Detail

Rule

public Rule()

Rule

public Rule(String pluginName,
            String key)

Rule

public Rule(String pluginKey,
            String key,
            String name,
            RulesCategory rulesCategory,
            RulePriority priority)

Rule

@Deprecated
public Rule(String name,
                       String key,
                       RulesCategory rulesCategory,
                       String pluginName,
                       String description)
Deprecated. 


Rule

@Deprecated
public Rule(String name,
                       String key,
                       String configKey,
                       RulesCategory rulesCategory,
                       String pluginName,
                       String description)
Deprecated. 

Method Detail

getName

public String getName()

setName

public final Rule setName(String name)

getKey

public String getKey()

setKey

public Rule setKey(String key)

getRulesCategory

public RulesCategory getRulesCategory()

setRulesCategory

public Rule setRulesCategory(RulesCategory rulesCategory)

getPluginName

public String getPluginName()

setPluginName

public Rule setPluginName(String pluginName)

getConfigKey

public String getConfigKey()

setConfigKey

public Rule setConfigKey(String configKey)

getDescription

public String getDescription()

setDescription

public Rule setDescription(String description)

getParams

public List<RuleParam> getParams()

setParams

public Rule setParams(List<RuleParam> params)

getCategoryId

public Integer getCategoryId()

getPriority

public RulePriority getPriority()

setPriority

public Rule setPriority(RulePriority priority)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 SonarSource SA. All Rights Reserved.