Package org.sonar.api.rules
Interface RuleFinder
-
@ServerSide @ComputeEngineSide public interface RuleFinder
- Since:
- 2.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Rule
find(RuleQuery query)
java.util.Collection<Rule>
findAll(RuleQuery query)
Rule
findById(int ruleId)
Deprecated.since 4.4, Please usefindByKey(org.sonar.api.rule.RuleKey)
}Rule
findByKey(java.lang.String repositoryKey, java.lang.String key)
Rule
findByKey(RuleKey key)
-
-
-
Method Detail
-
findById
@CheckForNull @Deprecated Rule findById(int ruleId)
Deprecated.since 4.4, Please usefindByKey(org.sonar.api.rule.RuleKey)
}- Since:
- 2.5
-
findByKey
@CheckForNull Rule findByKey(java.lang.String repositoryKey, java.lang.String key)
-
find
@CheckForNull Rule find(RuleQuery query)
- Throws:
java.lang.IllegalArgumentException
- if more than one result
-
-