|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Rule | |
---|---|
org.sonar.api.checks.templates | |
org.sonar.api.database.model | |
org.sonar.api.measures | |
org.sonar.api.profiles | |
org.sonar.api.qualitymodel | |
org.sonar.api.rules |
Uses of Rule in org.sonar.api.checks.templates |
---|
Methods in org.sonar.api.checks.templates that return types with arguments of type Rule | |
---|---|
java.util.List<Rule> |
CheckTemplateRepository.getInitialReferential()
|
java.util.List<Rule> |
CheckTemplateRepository.parseReferential(java.lang.String fileContent)
|
Uses of Rule in org.sonar.api.database.model |
---|
Methods in org.sonar.api.database.model that return Rule | |
---|---|
Rule |
RuleFailureModel.getRule()
|
Rule |
MeasureModel.getRule()
|
Methods in org.sonar.api.database.model with parameters of type Rule | |
---|---|
void |
RuleFailureModel.setRule(Rule rule)
|
MeasureModel |
MeasureModel.setRule(Rule rule)
Sets the rule for the measure |
Constructors in org.sonar.api.database.model with parameters of type Rule | |
---|---|
RuleFailureModel(Rule rule,
RulePriority priority)
|
Uses of Rule in org.sonar.api.measures |
---|
Methods in org.sonar.api.measures that return Rule | |
---|---|
Rule |
RuleMeasure.getRule()
|
Methods in org.sonar.api.measures with parameters of type Rule | |
---|---|
static RuleMeasure |
RuleMeasure.createForRule(Metric metric,
Rule rule,
java.lang.Double value)
|
static MeasuresFilter<RuleMeasure> |
MeasuresFilters.rule(Metric metric,
Rule rule)
|
void |
RuleMeasure.setRule(Rule rule)
|
Constructors in org.sonar.api.measures with parameters of type Rule | |
---|---|
RuleMeasure(Metric metric,
Rule rule,
RulePriority rulePriority,
java.lang.Integer ruleCategory)
This constructor is for internal use only. |
Uses of Rule in org.sonar.api.profiles |
---|
Methods in org.sonar.api.profiles with parameters of type Rule | |
---|---|
ActiveRule |
RulesProfile.activateRule(Rule rule)
|
ActiveRule |
RulesProfile.getActiveRule(Rule rule)
|
Uses of Rule in org.sonar.api.qualitymodel |
---|
Methods in org.sonar.api.qualitymodel that return Rule | |
---|---|
Rule |
Characteristic.getRule()
|
Methods in org.sonar.api.qualitymodel with parameters of type Rule | |
---|---|
Characteristic |
Model.createCharacteristicByRule(Rule rule)
|
Characteristic |
Characteristic.setRule(Rule r)
|
Uses of Rule in org.sonar.api.rules |
---|
Methods in org.sonar.api.rules that return Rule | |
---|---|
static Rule |
Rule.create()
|
static Rule |
Rule.create(java.lang.String repositoryKey,
java.lang.String key,
java.lang.String name)
Create with all required fields |
Rule |
RuleProvider.find(RuleQuery query)
|
Rule |
RuleProvider.findByKey(java.lang.String repositoryKey,
java.lang.String key)
|
Rule |
Rule.getParent()
|
abstract Rule |
RulesManager.getPluginRule(java.lang.String pluginKey,
java.lang.String ruleKey)
Deprecated. Gets a rule belonging to a defined plugin based on its key |
Rule |
Violation.getRule()
|
Rule |
RuleParam.getRule()
|
Rule |
ActiveRule.getRule()
|
static Rule |
RuleAnnotationUtils.readAnnotatedClass(java.lang.Class annotatedClass)
|
Rule |
Rule.setCardinality(Rule.Cardinality c)
|
Rule |
Rule.setConfigKey(java.lang.String configKey)
Sets the configuration key |
Rule |
Rule.setDescription(java.lang.String description)
Sets the rule description |
Rule |
Rule.setEnabled(java.lang.Boolean b)
Do not call. |
Rule |
Rule.setKey(java.lang.String key)
Sets the rule key |
Rule |
Rule.setName(java.lang.String name)
Sets the rule name |
Rule |
Rule.setParams(java.util.List<RuleParam> params)
Sets the rule parameters |
Rule |
Rule.setParent(Rule parent)
|
Rule |
Rule.setPluginName(java.lang.String pluginName)
Sets the plugin name the rule belongs to |
Rule |
Rule.setPriority(RulePriority priority)
Sets the rule priority. |
Rule |
Rule.setRepositoryKey(java.lang.String s)
|
Rule |
Rule.setRulesCategory(RulesCategory rulesCategory)
Sets the rule category |
Rule |
Rule.setUniqueKey(java.lang.String repositoryKey,
java.lang.String key)
|
Methods in org.sonar.api.rules that return types with arguments of type Rule | |
---|---|
abstract java.util.List<Rule> |
RuleRepository.createRules()
|
java.util.Collection<Rule> |
RuleProvider.findAll(RuleQuery query)
|
java.util.List<Rule> |
RulesRepository.getInitialReferential()
Deprecated. |
java.util.List<Rule> |
AbstractRulesRepository.getInitialReferential()
Deprecated. |
abstract java.util.Collection<Rule> |
RulesManager.getPluginRules(java.lang.String pluginKey)
Deprecated. Gets a collection of rules belonging to a plugin |
abstract java.util.Map<java.lang.String,Rule> |
RulesManager.getPluginRulesIndexedByKey(java.lang.String pluginKey)
Deprecated. Gets a list of rules indexed by their key for a given plugin |
java.util.List<Rule> |
StandardRulesXmlParser.parse(java.io.InputStream input)
Deprecated. |
java.util.List<Rule> |
StandardRulesXmlParser.parse(java.io.Reader reader)
Deprecated. |
java.util.List<Rule> |
StandardRulesXmlParser.parse(java.lang.String xml)
Deprecated. see the XML format into the unit test src/test/java/.../StandardRulesXmlParserTest |
java.util.List<Rule> |
RulesRepository.parseReferential(java.lang.String fileContent)
Deprecated. The method to parse the base referential of rules and return a list of rules |
java.util.List<Rule> |
AbstractRulesRepository.parseReferential(java.lang.String fileContent)
Deprecated. |
static java.util.List<Rule> |
StandardRuleXmlFormat.parseXml(java.io.File file)
|
static java.util.List<Rule> |
StandardRuleXmlFormat.parseXml(java.io.InputStream input)
Warning : the input stream is closed in this method |
static java.util.List<Rule> |
StandardRuleXmlFormat.parseXml(java.io.Reader reader)
|
static java.util.List<Rule> |
RuleAnnotationUtils.readAnnotatedClasses(java.util.Collection<java.lang.Class> annotatedClasses)
|
Methods in org.sonar.api.rules with parameters of type Rule | |
---|---|
Rule |
Rule.setParent(Rule parent)
|
Violation |
Violation.setRule(Rule rule)
Sets the rule violated |
void |
ActiveRule.setRule(Rule rule)
Deprecated. visibility should be reduced to protected or package |
Method parameters in org.sonar.api.rules with type arguments of type Rule | |
---|---|
java.util.List<ActiveRule> |
ConfigurationImportable.importConfiguration(java.lang.String configuration,
java.util.List<Rule> rules)
|
java.lang.String |
StandardRulesXmlParser.toXml(java.util.List<Rule> rules)
Deprecated. |
Constructors in org.sonar.api.rules with parameters of type Rule | |
---|---|
ActiveRule(RulesProfile profile,
Rule rule,
RulePriority priority)
Deprecated. visibility should be reduced to protected or package |
|
RuleParam(Rule rule,
java.lang.String key,
java.lang.String description,
java.lang.String type)
Deprecated. since 2.3 use the factory method setParameter() |
|
Violation(Rule rule)
Creates of a violation from a rule. |
|
Violation(Rule rule,
Resource resource)
Creates a fully qualified violation |
Constructor parameters in org.sonar.api.rules with type arguments of type Rule | |
---|---|
StandardProfileXmlParser(java.util.List<Rule> rules)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |