|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.batch.rule.internal.DefaultActiveRules
@Immutable public class DefaultActiveRules
| Constructor Summary | |
|---|---|
DefaultActiveRules(Collection<NewActiveRule> newActiveRules)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultActiveRules(Collection<NewActiveRule> newActiveRules)
| Method Detail |
|---|
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()
ActiveRules
findAll in interface ActiveRulespublic Collection<ActiveRule> findByRepository(String repository)
ActiveRulesfindbugs
findByRepository in interface ActiveRulespublic Collection<ActiveRule> findByLanguage(String language)
ActiveRulesjava
findByLanguage in interface ActiveRules
public 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 ActiveRules
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||