org.sonar.api.rules
Class ActiveRuleChange
java.lang.Object
org.sonar.api.database.BaseIdentifiable
org.sonar.api.rules.ActiveRuleChange
public class ActiveRuleChange
- extends BaseIdentifiable
A class to map a RuleChange to the hibernate model
- Since:
- 2.9
ActiveRuleChange
public ActiveRuleChange(String userName,
RulesProfile profile,
Rule rule)
getRule
public Rule getRule()
getOldSeverity
public RulePriority getOldSeverity()
setOldSeverity
public void setOldSeverity(RulePriority oldSeverity)
getNewSeverity
public RulePriority getNewSeverity()
setNewSeverity
public void setNewSeverity(RulePriority newSeverity)
getRulesProfile
public RulesProfile getRulesProfile()
getProfileVersion
public int getProfileVersion()
getRepositoryKey
public String getRepositoryKey()
getConfigKey
public String getConfigKey()
- Returns:
- the config key the changed rule belongs to
getRuleKey
public String getRuleKey()
- Returns:
- the key of the changed rule
isEnabled
public Boolean isEnabled()
setEnabled
public void setEnabled(Boolean enabled)
getActiveRuleParamChanges
public List<ActiveRuleParamChange> getActiveRuleParamChanges()
getUserName
public String getUserName()
setParameterChange
public ActiveRuleChange setParameterChange(String key,
String oldValue,
String newValue)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 SonarSource. All Rights Reserved.