|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.profiles.RulesProfile
public class RulesProfile
This class is badly named. It should be "QualityProfile". Indeed it does not relate only to rules but to metric thresholds too.
Field Summary | |
---|---|
static String |
SONAR_WAY_FINDBUGS_NAME
Name of the default java profile "Sonar way with Findbugs" |
static String |
SONAR_WAY_NAME
Name of the default profile "Sonar Way" |
static String |
SUN_CONVENTIONS_NAME
Name of the default java profile "Sun checks" |
Constructor Summary | |
---|---|
RulesProfile()
Deprecated. use the factory method create() |
|
RulesProfile(String name,
String language)
Deprecated. since 2.3. Use the factory method create() |
|
RulesProfile(String name,
String language,
boolean defaultProfile,
boolean provided)
Deprecated. since 2.3. Use the factory method create() |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SONAR_WAY_NAME
public static final String SONAR_WAY_FINDBUGS_NAME
public static final String SUN_CONVENTIONS_NAME
Constructor Detail |
---|
@Deprecated public RulesProfile()
@Deprecated public RulesProfile(String name, String language)
@Deprecated public RulesProfile(String name, String language, boolean defaultProfile, boolean provided)
Method Detail |
---|
public Integer getId()
public String getName()
public RulesProfile setName(String s)
public List<ActiveRule> getActiveRules()
public void setActiveRules(List<ActiveRule> activeRules)
public Boolean getDefaultProfile()
public void setDefaultProfile(Boolean b)
public Boolean getProvided()
public void setProvided(Boolean b)
public String getLanguage()
public RulesProfile setLanguage(String s)
public List<Alert> getAlerts()
public void setAlerts(List<Alert> alerts)
public List<ResourceModel> getProjects()
public void setProjects(List<ResourceModel> projects)
public List<ActiveRule> getActiveRules(RulePriority priority)
@Deprecated public List<ActiveRule> getActiveRulesByPlugin(String repositoryKey)
public List<ActiveRule> getActiveRulesByRepository(String repositoryKey)
public ActiveRule getActiveRule(String repositoryKey, String ruleKey)
public ActiveRule getActiveRuleByConfigKey(String repositoryKey, String configKey)
public ActiveRule getActiveRule(Rule rule)
public ActiveRule activateRule(Rule rule, RulePriority optionalPriority)
rule
- optionalPriority
- if null, then the default rule priority is used
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone()
clone
in class Object
public String toString()
toString
in class Object
public static RulesProfile create(String name, String language)
public static RulesProfile create()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |