org.sonar.api.rules
Class DefaultRulesManager

java.lang.Object
  extended by org.sonar.api.rules.RulesManager
      extended by org.sonar.api.rules.DefaultRulesManager

Deprecated. UGLY CLASS

@Deprecated
public class DefaultRulesManager
extends RulesManager

A class to manage and access rules defined in Sonar.


Constructor Summary
DefaultRulesManager(RulesDao dao)
          Deprecated.  
 
Method Summary
 Rule getPluginRule(String pluginKey, String ruleKey)
          Deprecated. Gets a rule belonging to a defined plugin based on its key
 Map<String,Rule> getPluginRulesIndexedByKey(String pluginKey)
          Deprecated. Gets a list of rules indexed by their key for a given plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRulesManager

public DefaultRulesManager(RulesDao dao)
Deprecated. 
Method Detail

getPluginRulesIndexedByKey

public Map<String,Rule> getPluginRulesIndexedByKey(String pluginKey)
Deprecated. 
Gets a list of rules indexed by their key for a given plugin

Parameters:
pluginKey - the plugin key
Returns:
a Map with the rule key and the rule

getPluginRule

public Rule getPluginRule(String pluginKey,
                          String ruleKey)
Deprecated. 
Gets a rule belonging to a defined plugin based on its key

Specified by:
getPluginRule in class RulesManager
Parameters:
pluginKey - the plugin key
ruleKey - the rule key
Returns:
the rule


Copyright © 2009-2012 SonarSource. All Rights Reserved.