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:
java.io.Serializable, java.lang.Cloneable

public class RulesProfile
extends BaseIdentifiable
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
static java.lang.String SONAR_WAY_FINDBUGS_NAME
           
static java.lang.String SONAR_WAY_NAME
           
static java.lang.String SUN_CONVENTIONS_NAME
           
 
Constructor Summary
RulesProfile()
           
RulesProfile(java.lang.String name, java.lang.String language)
           
RulesProfile(java.lang.String name, java.lang.String language, boolean defaultProfile, boolean provided)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 ActiveRule getActiveRule(Rule rule)
           
 ActiveRule getActiveRule(java.lang.String pluginKey, java.lang.String ruleKey)
           
 java.util.List<ActiveRule> getActiveRules()
           
 java.util.List<ActiveRule> getActiveRules(RulePriority priority)
           
 java.util.List<ActiveRule> getActiveRulesByPlugin(java.lang.String pluginKey)
           
 java.util.List<Alert> getAlerts()
           
 java.lang.Boolean getDefaultProfile()
           
 java.lang.String getLanguage()
           
 java.lang.String getName()
           
 java.util.List<ResourceModel> getProjects()
           
 java.lang.Boolean getProvided()
           
 int hashCode()
           
 void setActiveRules(java.util.List<ActiveRule> activeRules)
           
 void setAlerts(java.util.List<Alert> alerts)
           
 void setDefaultProfile(java.lang.Boolean defaultProfile)
           
 void setLanguage(java.lang.String language)
           
 void setName(java.lang.String name)
           
 void setProjects(java.util.List<ResourceModel> projects)
           
 void setProvided(java.lang.Boolean provided)
           
 java.lang.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 java.lang.String SONAR_WAY_NAME
See Also:
Constant Field Values

SONAR_WAY_FINDBUGS_NAME

public static final java.lang.String SONAR_WAY_FINDBUGS_NAME
See Also:
Constant Field Values

SUN_CONVENTIONS_NAME

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

RulesProfile

public RulesProfile()

RulesProfile

public RulesProfile(java.lang.String name,
                    java.lang.String language)

RulesProfile

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

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getActiveRules

public java.util.List<ActiveRule> getActiveRules()

setActiveRules

public void setActiveRules(java.util.List<ActiveRule> activeRules)

getDefaultProfile

public java.lang.Boolean getDefaultProfile()

setDefaultProfile

public void setDefaultProfile(java.lang.Boolean defaultProfile)

getProvided

public java.lang.Boolean getProvided()

setProvided

public void setProvided(java.lang.Boolean provided)

getLanguage

public java.lang.String getLanguage()

setLanguage

public void setLanguage(java.lang.String language)

getAlerts

public java.util.List<Alert> getAlerts()

setAlerts

public void setAlerts(java.util.List<Alert> alerts)

getProjects

public java.util.List<ResourceModel> getProjects()

setProjects

public void setProjects(java.util.List<ResourceModel> projects)

getActiveRules

public java.util.List<ActiveRule> getActiveRules(RulePriority priority)

getActiveRulesByPlugin

public java.util.List<ActiveRule> getActiveRulesByPlugin(java.lang.String pluginKey)

getActiveRule

public ActiveRule getActiveRule(java.lang.String pluginKey,
                                java.lang.String ruleKey)

getActiveRule

public ActiveRule getActiveRule(Rule rule)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 SonarSource SA. All Rights Reserved.