public interface RuleI18n extends ServerComponent, BatchComponent
I18n
-companion component that provides translation facilities for rule names, descriptions and parameter names.Modifier and Type | Method and Description |
---|---|
String |
getDescription(String repositoryKey,
String ruleKey,
Locale locale)
Returns the localized description of the rule identified by its repository key and rule key.
|
String |
getName(String repositoryKey,
String ruleKey,
Locale locale)
Returns the localized name of the rule identified by its repository key and rule key.
|
String |
getParamDescription(String repositoryKey,
String ruleKey,
String paramKey,
Locale locale)
Returns the localized name of the rule parameter identified by the rules's key and repository key, and by the parameter key.
|
String getName(String repositoryKey, String ruleKey, Locale locale)
repositoryKey
- the repository keyruleKey
- the rule keylocale
- the locale to translate intoString getDescription(String repositoryKey, String ruleKey, Locale locale)
repositoryKey
- the repository keyruleKey
- the rule keylocale
- the locale to translate intoString getParamDescription(String repositoryKey, String ruleKey, String paramKey, Locale locale)
repositoryKey
- the repository keyruleKey
- the rule keyparamKey
- the parameter keylocale
- the locale to translate intoCopyright © 2009-2012 SonarSource. All Rights Reserved.