@Immutable public class DefaultActiveRules extends java.lang.Object implements ActiveRules
| Constructor and Description |
|---|
DefaultActiveRules(java.util.Collection<NewActiveRule> newActiveRules) |
| Modifier and Type | Method and Description |
|---|---|
ActiveRule |
find(RuleKey ruleKey)
Find a
ActiveRule by the associated rule key. |
java.util.Collection<ActiveRule> |
findAll()
All the active rules, whatever their repository and related language.
|
ActiveRule |
findByInternalKey(java.lang.String repository,
java.lang.String internalKey)
Find a
ActiveRule by the associated internal key. |
java.util.Collection<ActiveRule> |
findByLanguage(java.lang.String language)
The active rules for a given language, like
java |
java.util.Collection<ActiveRule> |
findByRepository(java.lang.String repository)
The active rules for a given repository, like
findbugs |
public DefaultActiveRules(java.util.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 project.find in interface ActiveRulespublic java.util.Collection<ActiveRule> findAll()
ActiveRulesfindAll in interface ActiveRulespublic java.util.Collection<ActiveRule> findByRepository(java.lang.String repository)
ActiveRulesfindbugsfindByRepository in interface ActiveRulespublic java.util.Collection<ActiveRule> findByLanguage(java.lang.String language)
ActiveRulesjavafindByLanguage in interface ActiveRulespublic ActiveRule findByInternalKey(java.lang.String repository, java.lang.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 project.findByInternalKey in interface ActiveRules