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

Packages that use Rule
org.sonar.api.i18n   
org.sonar.api.issue   
org.sonar.api.measures   
org.sonar.api.profiles   
org.sonar.api.rules   
 

Uses of Rule in org.sonar.api.i18n
 

Methods in org.sonar.api.i18n with parameters of type Rule
 String RuleI18n.getName(Rule rule)
          Deprecated. Returns the name of the rule.
 String RuleI18n.getName(Rule rule, Locale locale)
          Deprecated. since 4.1. Rules are not localized anymore. See http://jira.codehaus.org/browse/SONAR-4885
 

Uses of Rule in org.sonar.api.issue
 

Methods in org.sonar.api.issue that return Rule
 Rule IssueQueryResult.rule(Issue issue)
          Returns the rule associated to the given issue.
 

Methods in org.sonar.api.issue that return types with arguments of type Rule
 Collection<Rule> IssueQueryResult.rules()
          The rules involved in the paginated IssueQueryResult.issues().
 

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)
           
 RuleMeasure 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.activateRule(Rule rule, RulePriority optionalSeverity)
           
 ActiveRule RulesProfile.getActiveRule(Rule rule)
          Note: disabled rules are excluded.
 

Uses of Rule in org.sonar.api.rules
 

Methods in org.sonar.api.rules that return Rule
static Rule Rule.create()
           
static Rule Rule.create(String repositoryKey, String key)
          Create with all required fields
static Rule Rule.create(String repositoryKey, String key, String name)
          Create with all required fields
 Rule RuleFinder.find(RuleQuery query)
           
 Rule RuleFinder.findById(int ruleId)
           
 Rule RuleFinder.findByKey(RuleKey key)
           
 Rule RuleFinder.findByKey(String repositoryKey, String key)
           
 Rule Rule.getParent()
           
 Rule Violation.getRule()
          Deprecated.  
 Rule RuleParam.getRule()
           
 Rule ActiveRuleChange.getRule()
           
 Rule ActiveRule.getRule()
           
 Rule Rule.setCardinality(Cardinality c)
           
 Rule Rule.setCharacteristicId(Integer characteristicId)
          For internal use only.
 Rule Rule.setConfigKey(String configKey)
          Sets the configuration key
 Rule Rule.setCreatedAt(Date d)
           
 Rule Rule.setDefaultCharacteristicId(Integer defaultCharacteristicId)
          For internal use only.
 Rule Rule.setDescription(String description)
          Sets the rule description
 Rule Rule.setEnabled(Boolean enabled)
          Deprecated. in 3.6. Replaced by setStatus(String status).
 Rule Rule.setKey(String key)
          Sets the rule key
 Rule Rule.setLanguage(String language)
          For internal use only.
 Rule Rule.setName(String name)
          Sets the rule name
 Rule Rule.setParams(List<RuleParam> params)
          Sets the rule parameters
 Rule Rule.setParent(Rule parent)
           
 Rule Rule.setPluginName(String pluginName)
          Deprecated. since 2.5 use setRepositoryKey(String) instead
 Rule Rule.setPriority(RulePriority priority)
          Deprecated. since 2.5 use setSeverity(RulePriority) instead. See http://jira.codehaus.org/browse/SONAR-1829
 Rule Rule.setRepositoryKey(String s)
           
 Rule Rule.setSeverity(RulePriority severity)
           
 Rule Rule.setStatus(String status)
           
 Rule Rule.setUniqueKey(String repositoryKey, String key)
           
 Rule Rule.setUpdatedAt(Date updatedAt)
           
 

Methods in org.sonar.api.rules that return types with arguments of type Rule
abstract  List<Rule> RuleRepository.createRules()
          Deprecated.  
 Collection<Rule> RuleFinder.findAll(RuleQuery query)
           
 List<Rule> XMLRuleParser.parse(File file)
          Deprecated.  
 List<Rule> XMLRuleParser.parse(InputStream input)
          Deprecated. Warning : the input stream is closed in this method
 List<Rule> XMLRuleParser.parse(Reader reader)
          Deprecated.  
 List<Rule> AnnotationRuleParser.parse(String repositoryKey, Collection<Class> annotatedClasses)
          Deprecated.  
 

Methods in org.sonar.api.rules with parameters of type Rule
static Violation Violation.create(Rule rule, Resource resource)
          Deprecated.  
 Rule Rule.setParent(Rule parent)
           
 Violation Violation.setRule(Rule rule)
          Deprecated. Sets the rule violated
 void ActiveRule.setRule(Rule rule)
          Deprecated. visibility should be reduced to protected or package
 

Constructors in org.sonar.api.rules with parameters of type Rule
ActiveRule(RulesProfile profile, Rule rule, RulePriority severity)
          Deprecated. visibility should be reduced to protected or package
ActiveRuleChange(String userName, RulesProfile profile, Rule rule)
           
RuleParam(Rule rule, String key, String description, String type)
          Deprecated. since 2.3 use the factory method setParameter()
Violation(Rule rule)
          Deprecated. since 2.3. Use the factory method create()
Violation(Rule rule, Resource resource)
          Deprecated. since 2.3. Use the factory method create()
 



Copyright © 2009-2014 SonarSource. All Rights Reserved.