Package org.sonar.api.server.rule
Class Context
- java.lang.Object
-
- org.sonar.api.server.rule.Context
-
public class Context extends java.lang.Object
Describes the context in which aRuleDescriptionSection
is defined. Contexts can be for example frameworks - each rule may have slightly different description section for each framework (context).- Since:
- 9.7
-
-
Constructor Summary
Constructors Constructor Description Context(java.lang.String key, java.lang.String displayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
java.lang.String
getKey()
-
-
-
Constructor Detail
-
Context
public Context(java.lang.String key, java.lang.String displayName)
- Parameters:
key
- the context Key, must follow the pattern defined inStringPatternValidator.COMMON_PATTERN_FOR_KEYS
displayName
-
-
-