@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)
ActiveRules
ActiveRule
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 ActiveRules
public Collection<ActiveRule> findAll()
ActiveRules
findAll
in interface ActiveRules
public Collection<ActiveRule> findByRepository(String repository)
ActiveRules
findbugs
findByRepository
in interface ActiveRules
public Collection<ActiveRule> findByLanguage(String language)
ActiveRules
java
findByLanguage
in interface ActiveRules
public ActiveRule findByInternalKey(String repository, String internalKey)
ActiveRules
ActiveRule
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 ActiveRules
Copyright © 2009–2018 SonarSource. All rights reserved.