|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |