|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.rules.Rule
public final class Rule
Field Summary | |
---|---|
static RulePriority |
DEFAULT_PRIORITY
The default priority given to a rule if not explicitely set |
Constructor Summary | |
---|---|
Rule()
Deprecated. since 2.3. Use the factory method create() |
|
Rule(String pluginName,
String key)
Deprecated. since 2.3. Use the factory method create() |
|
Rule(String name,
String key,
RulesCategory rulesCategory,
String pluginName,
String description)
Deprecated. Use the factory method create() |
|
Rule(String pluginKey,
String key,
String name,
RulesCategory rulesCategory,
RulePriority priority)
Deprecated. since 2.3. Use the factory method create() |
|
Rule(String name,
String key,
String configKey,
RulesCategory rulesCategory,
String pluginName,
String description)
Deprecated. since 2.3. Use the factory method create() |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RulePriority DEFAULT_PRIORITY
Constructor Detail |
---|
@Deprecated public Rule()
@Deprecated public Rule(String pluginName, String key)
pluginName
- the plugin name indicates which plugin the rule belongs tokey
- the key should be unique within a plugin, but it is even more careful for the time being that it is unique
across the application@Deprecated public Rule(String pluginKey, String key, String name, RulesCategory rulesCategory, RulePriority priority)
pluginKey
- the plugin the rule belongs tokey
- the key should be unique within a plugin, but it is even more careful for the time being that it is unique
across the applicationname
- the name displayed in the UIrulesCategory
- the ISO category the rule belongs topriority
- this is the priority associated to the rule@Deprecated public Rule(String name, String key, RulesCategory rulesCategory, String pluginName, String description)
@Deprecated public Rule(String name, String key, String configKey, RulesCategory rulesCategory, String pluginName, String description)
Method Detail |
---|
public Integer getId()
@Deprecated public void setId(Integer id)
public String getName()
public Rule setName(String name)
public String getKey()
public Rule setKey(String key)
public RulesCategory getRulesCategory()
public Rule setRulesCategory(RulesCategory rulesCategory)
public String getPluginName()
public Rule setPluginName(String pluginName)
public String getConfigKey()
public Rule setConfigKey(String configKey)
public String getDescription()
public Boolean isEnabled()
public Rule setEnabled(Boolean b)
public Rule setDescription(String description)
public List<RuleParam> getParams()
public RuleParam getParam(String key)
public Rule setParams(List<RuleParam> params)
public RuleParam createParameter()
public RuleParam createParameter(String key)
public Integer getCategoryId()
public RulePriority getPriority()
public Rule setPriority(RulePriority priority)
public String getRepositoryKey()
public Rule setRepositoryKey(String s)
public Rule setUniqueKey(String repositoryKey, String key)
public Cardinality getCardinality()
public Rule setCardinality(Cardinality c)
public Rule getParent()
public Rule setParent(Rule parent)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static Rule create()
public static Rule create(String repositoryKey, String key, String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |