Uses of Class
org.sonar.api.rules.Rule

Packages that use Rule
org.sonar.api.database.daos   
org.sonar.api.database.model   
org.sonar.api.measures   
org.sonar.api.profiles   
org.sonar.api.rules   
 

Uses of Rule in org.sonar.api.database.daos
 

Methods in org.sonar.api.database.daos that return Rule
 Rule RulesDao.getRuleByKey(String pluginKey, String ruleKey)
           
 

Methods in org.sonar.api.database.daos that return types with arguments of type Rule
 List<Rule> RulesDao.getRules()
           
 List<Rule> RulesDao.getRulesByCategory(RulesCategory categ)
           
 List<Rule> RulesDao.getRulesByPlugin(String pluginKey)
           
 

Methods in org.sonar.api.database.daos with parameters of type Rule
 RuleParam RulesDao.getRuleParam(Rule rule, String paramKey)
           
 

Uses of Rule in org.sonar.api.database.model
 

Methods in org.sonar.api.database.model that return Rule
 Rule RuleFailureModel.getRule()
           
 Rule MeasureModel.getRule()
           
 

Methods in org.sonar.api.database.model with parameters of type Rule
 void RuleFailureModel.setRule(Rule rule)
           
 MeasureModel MeasureModel.setRule(Rule rule)
          Sets the rule for the measure
 

Constructors in org.sonar.api.database.model with parameters of type Rule
RuleFailureModel(Rule rule, RulePriority priority)
           
 

Uses of Rule in org.sonar.api.measures
 

Methods in org.sonar.api.measures that return Rule
 Rule RuleMeasure.getRule()
           
 

Methods in org.sonar.api.measures with parameters of type Rule
static RuleMeasure RuleMeasure.createForRule(Metric metric, Rule rule, Double value)
           
static MeasuresFilter<RuleMeasure> MeasuresFilters.rule(Metric metric, Rule rule)
           
 void RuleMeasure.setRule(Rule rule)
           
 

Constructors in org.sonar.api.measures with parameters of type Rule
RuleMeasure(Metric metric, Rule rule, RulePriority rulePriority, Integer ruleCategory)
          This constructor is for internal use only.
 

Uses of Rule in org.sonar.api.profiles
 

Methods in org.sonar.api.profiles with parameters of type Rule
 ActiveRule RulesProfile.getActiveRule(Rule rule)
          THIS METHOD SHOULD NOT BE USED AS CURRENTLY THE PLUGIN KEY CAN NOT BE DETERMINED
 

Uses of Rule in org.sonar.api.rules
 

Methods in org.sonar.api.rules that return Rule
 Rule RulesManager.getPluginRule(String pluginKey, String ruleKey)
          Gets a rule belonging to a defined plugin based on its key
 Rule Violation.getRule()
           
 Rule RuleParam.getRule()
           
 Rule ActiveRule.getRule()
           
 Rule Rule.setConfigKey(String configKey)
          Sets the configuration key
 Rule Rule.setDescription(String description)
          Sets the rule description
 Rule Rule.setKey(String key)
          Sets the rule key
 Rule Rule.setName(String name)
          Sets the rule name
 Rule Rule.setParams(List<RuleParam> params)
          Sets the rule parameters
 Rule Rule.setPluginName(String pluginName)
          Sets the plugin name the rule belongs to
 Rule Rule.setPriority(RulePriority priority)
          Sets the rule priority.
 Rule Rule.setRulesCategory(RulesCategory rulesCategory)
          Sets the rule category
 

Methods in org.sonar.api.rules that return types with arguments of type Rule
 List<Rule> RulesRepository.getInitialReferential()
           
 List<Rule> AbstractRulesRepository.getInitialReferential()
           
 Collection<Rule> RulesManager.getPluginRules(String pluginKey)
          Gets a collection of rules belonging to a plugin
 Map<String,Rule> RulesManager.getPluginRulesIndexedByKey(String pluginKey)
          Gets a list of rules indexed by their key for a given plugin
 List<Rule> StandardRulesXmlParser.parse(InputStream input)
           
 List<Rule> StandardRulesXmlParser.parse(Reader reader)
           
 List<Rule> StandardRulesXmlParser.parse(String xml)
          see the XML format into the unit test src/test/java/.../StandardRulesXmlParserTest
 List<Rule> RulesRepository.parseReferential(String fileContent)
          The method to parse the base referential of rules and return a list of rules
 List<Rule> AbstractRulesRepository.parseReferential(String fileContent)
           
 

Methods in org.sonar.api.rules with parameters of type Rule
 Violation Violation.setRule(Rule rule)
          Sets the rule violated
 void RuleParam.setRule(Rule rule)
           
 void ActiveRule.setRule(Rule rule)
           
 

Method parameters in org.sonar.api.rules with type arguments of type Rule
 List<ActiveRule> ConfigurationImportable.importConfiguration(String configuration, List<Rule> rules)
           
 String StandardRulesXmlParser.toXml(List<Rule> rules)
           
 

Constructors in org.sonar.api.rules with parameters of type Rule
ActiveRule(RulesProfile profile, Rule rule, RulePriority priority)
          Creates an ActiveRule
RuleParam(Rule rule, String key, String description, String type)
           
Violation(Rule rule)
          Creates of a violation from a rule.
Violation(Rule rule, Resource resource)
          Creates a fully qualified violation
 

Constructor parameters in org.sonar.api.rules with type arguments of type Rule
StandardProfileXmlParser(List<Rule> rules)
           
 



Copyright © 2009 SonarSource SA. All Rights Reserved.