org.sonar.api.profiles
Class RulesProfile

java.lang.Object
  extended by org.sonar.api.database.BaseIdentifiable
      extended by org.sonar.api.profiles.RulesProfile
All Implemented Interfaces:
Cloneable

public class RulesProfile
extends BaseIdentifiable
implements Cloneable


Field Summary
static String SONAR_WAY_FINDBUGS_NAME
           
static String SONAR_WAY_NAME
           
static String SUN_CONVENTIONS_NAME
           
 
Constructor Summary
RulesProfile()
           
RulesProfile(String name, String language)
           
RulesProfile(String name, String language, boolean defaultProfile, boolean provided)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 ActiveRule getActiveRule(Rule rule)
           
 ActiveRule getActiveRule(String pluginKey, String ruleKey)
           
 List<ActiveRule> getActiveRules()
           
 List<ActiveRule> getActiveRules(RulePriority priority)
           
 List<ActiveRule> getActiveRulesByPlugin(String pluginKey)
           
 List<Alert> getAlerts()
           
 Boolean getDefaultProfile()
           
 String getLanguage()
           
 String getName()
           
 List<ResourceModel> getProjects()
           
 Boolean getProvided()
           
 int hashCode()
           
 void setActiveRules(List<ActiveRule> activeRules)
           
 void setAlerts(List<Alert> alerts)
           
 void setDefaultProfile(Boolean defaultProfile)
           
 void setLanguage(String language)
           
 void setName(String name)
           
 void setProjects(List<ResourceModel> projects)
           
 void setProvided(Boolean provided)
           
 String toString()
           
 
Methods inherited from class org.sonar.api.database.BaseIdentifiable
getId, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SONAR_WAY_NAME

public static final String SONAR_WAY_NAME
See Also:
Constant Field Values

SONAR_WAY_FINDBUGS_NAME

public static final String SONAR_WAY_FINDBUGS_NAME
See Also:
Constant Field Values

SUN_CONVENTIONS_NAME

public static final String SUN_CONVENTIONS_NAME
See Also:
Constant Field Values
Constructor Detail

RulesProfile

public RulesProfile()

RulesProfile

public RulesProfile(String name,
                    String language)

RulesProfile

public RulesProfile(String name,
                    String language,
                    boolean defaultProfile,
                    boolean provided)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getActiveRules

public List<ActiveRule> getActiveRules()

setActiveRules

public void setActiveRules(List<ActiveRule> activeRules)

getDefaultProfile

public Boolean getDefaultProfile()

setDefaultProfile

public void setDefaultProfile(Boolean defaultProfile)

getProvided

public Boolean getProvided()

setProvided

public void setProvided(Boolean provided)

getLanguage

public String getLanguage()

setLanguage

public void setLanguage(String language)

getAlerts

public List<Alert> getAlerts()

setAlerts

public void setAlerts(List<Alert> alerts)

getProjects

public List<ResourceModel> getProjects()

setProjects

public void setProjects(List<ResourceModel> projects)

getActiveRules

public List<ActiveRule> getActiveRules(RulePriority priority)

getActiveRulesByPlugin

public List<ActiveRule> getActiveRulesByPlugin(String pluginKey)

getActiveRule

public ActiveRule getActiveRule(String pluginKey,
                                String ruleKey)

getActiveRule

public ActiveRule getActiveRule(Rule rule)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 SonarSource SA. All Rights Reserved.