@Deprecated @ScannerSide @ServerSide @ComputeEngineSide public interface RuleI18n
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)
Deprecated.
Returns the description of the rule identified by its repository key and rule key.
|
String |
getDescription(String repositoryKey,
String ruleKey,
Locale locale)
Deprecated.
since 4.1. Rules are not localized anymore. See http://jira.sonarsource.com/browse/SONAR-4885
|
String |
getName(Rule rule)
Deprecated.
Returns the name of the rule.
|
String |
getName(Rule rule,
Locale locale)
Deprecated.
since 4.1. Rules are not localized anymore. See http://jira.sonarsource.com/browse/SONAR-4885
|
String |
getName(String repositoryKey,
String ruleKey)
Deprecated.
Returns the name of the rule identified by its repository key and rule key.
|
String |
getName(String repositoryKey,
String ruleKey,
Locale locale)
Deprecated.
since 4.1. Rules are not localized anymore. See http://jira.sonarsource.com/browse/SONAR-4885
|
String |
getParamDescription(String repositoryKey,
String ruleKey,
String paramKey)
Deprecated.
Returns the name of the rule parameter identified by the rules's key and repository key, and by the parameter key.
|
String |
getParamDescription(String repositoryKey,
String ruleKey,
String paramKey,
Locale locale)
Deprecated.
since 4.1. Rules are not localized anymore. See http://jira.sonarsource.com/browse/SONAR-4885
|
@Deprecated @CheckForNull String getName(String repositoryKey, String ruleKey, Locale locale)
repositoryKey - the repository keyruleKey - the rule keylocale - not used@CheckForNull String getName(String repositoryKey, String ruleKey)
repositoryKey - the repository keyruleKey - the rule key@Deprecated @CheckForNull String getName(Rule rule, Locale locale)
rule - the rulelocale - the locale to translate into@CheckForNull String getName(Rule rule)
rule - the rule@Deprecated String getDescription(String repositoryKey, String ruleKey, Locale locale)
repositoryKey - the repository keyruleKey - the rule keylocale - the locale to translate intoString getDescription(String repositoryKey, String ruleKey)
repositoryKey - the repository keyruleKey - the rule key@Deprecated @CheckForNull String getParamDescription(String repositoryKey, String ruleKey, String paramKey, Locale locale)
repositoryKey - the repository keyruleKey - the rule keyparamKey - the parameter keylocale - the locale to translate into@CheckForNull String getParamDescription(String repositoryKey, String ruleKey, String paramKey)
repositoryKey - the repository keyruleKey - the rule keyparamKey - the parameter keyCopyright © 2009–2017 SonarSource. All rights reserved.