@Immutable public class DefaultActiveRules extends Object implements ActiveRules
| Constructor and Description |
|---|
DefaultActiveRules(Collection<NewActiveRule> newActiveRules) |
| Modifier and Type | Method and Description |
|---|---|
ActiveRule |
find(RuleKey ruleKey)
Find a
ActiveRule by the associated rule key. |
Collection<ActiveRule> |
findAll()
All the active rules, whatever their repository and related language.
|
ActiveRule |
findByInternalKey(String repository,
String internalKey)
Find a
ActiveRule by the associated internal key. |
Collection<ActiveRule> |
findByLanguage(String language)
The active rules for a given language, like
java |
Collection<ActiveRule> |
findByRepository(String repository)
The active rules for a given repository, like
findbugs |
public DefaultActiveRules(Collection<NewActiveRule> newActiveRules)
public ActiveRule find(RuleKey ruleKey)
ActiveRulesActiveRule by the associated rule key. null
is returned if the rule does not exist or if the rule is not activated
on any Quality profile associated with the module.find in interface ActiveRulespublic Collection<ActiveRule> findAll()
ActiveRulesfindAll in interface ActiveRulespublic Collection<ActiveRule> findByRepository(String repository)
ActiveRulesfindbugsfindByRepository in interface ActiveRulespublic Collection<ActiveRule> findByLanguage(String language)
ActiveRulesjavafindByLanguage in interface ActiveRulespublic ActiveRule findByInternalKey(String repository, String internalKey)
ActiveRulesActiveRule by the associated internal key. null
is returned if the rule does not exist or if the rule is not activated
on any Quality profile associated with the module.findByInternalKey in interface ActiveRulesCopyright © 2009–2017 SonarSource. All rights reserved.