org.sonar.api.server.rule
Class RulesDefinitionI18nLoader
java.lang.Object
org.sonar.api.server.rule.RulesDefinitionI18nLoader
- All Implemented Interfaces:
- ServerComponent
public class RulesDefinitionI18nLoader
- extends Object
- implements ServerComponent
Loads the English bundles of rules (name, description and parameters) that are
deprecated since 4.2. It can be useful when loading existing XML files that
do not contain rule names and descriptions.
This class must be executed after declaring rules on RulesDefinition.NewRepository
.
Note that localization of rules was dropped in version 4.2. All texts are English.
- Since:
- 4.3
- See Also:
for an example
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RulesDefinitionI18nLoader
public RulesDefinitionI18nLoader(RuleI18n i18n)
load
public void load(RulesDefinition.NewRepository repo)
- Loads descriptions of rules and related rule parameters. Existing descriptions
are overridden if English labels exist in bundles.
Copyright © 2009–2015 SonarSource. All rights reserved.