org.sonar.commons.rules
Class RulesProfile

java.lang.Object
  extended by org.sonar.commons.rules.RulesProfile
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

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

See Also:
Serialized Form

Field Summary
static java.lang.String SONAR_WAY_NAME
           
static java.lang.String SUN_CONVENTIONS_NAME
           
 
Constructor Summary
RulesProfile()
           
RulesProfile(java.lang.String name)
           
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(java.lang.String pluginKey, java.lang.String ruleKey)
           
 java.util.List<ActiveRule> getActiveRules()
           
 java.util.List<ActiveRule> getActiveRules(RuleFailureLevel level)
           
 java.util.List<ActiveRule> getActiveRulesByPlugin(java.lang.String pluginKey)
           
 java.util.List<Alert> getAlerts()
           
 java.lang.Boolean getDefaultProfile()
           
 java.lang.Integer getId()
           
 java.lang.String getLanguage()
           
 java.lang.String getName()
           
 java.util.List<Resource> 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 setId(java.lang.Integer id)
           
 void setLanguage(java.lang.String language)
           
 void setName(java.lang.String name)
           
 void setProjects(java.util.List<Resource> projects)
           
 void setProvided(java.lang.Boolean provided)
           
 java.lang.String toString()
           
 
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

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)

RulesProfile

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

getId

public java.lang.Integer getId()

setId

public void setId(java.lang.Integer id)

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<Resource> getProjects()

setProjects

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

getActiveRules

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

getActiveRulesByPlugin

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

getActiveRule

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

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.