org.sonar.batch.rule
Class RulesProfileWrapper

java.lang.Object
  extended by org.sonar.api.profiles.RulesProfile
      extended by org.sonar.batch.rule.RulesProfileWrapper
All Implemented Interfaces:
Cloneable

public class RulesProfileWrapper
extends RulesProfile

This wrapper is used to try to preserve backward compatibility for plugins that used to depends on RulesProfile

Since:
4.2

Field Summary
 
Fields inherited from class org.sonar.api.profiles.RulesProfile
SONAR_WAY_FINDBUGS_NAME, SONAR_WAY_NAME, SUN_CONVENTIONS_NAME
 
Constructor Summary
RulesProfileWrapper(Collection<RulesProfile> profiles)
           
RulesProfileWrapper(RulesProfile profile)
           
 
Method Summary
 ActiveRule getActiveRule(Rule rule)
           
 ActiveRule getActiveRule(String repositoryKey, String ruleKey)
           
 List<ActiveRule> getActiveRules()
           
 List<ActiveRule> getActiveRules(boolean acceptDisabledRules)
           
 List<ActiveRule> getActiveRulesByRepository(String repositoryKey)
           
 Boolean getDefaultProfile()
           
 Integer getId()
           
 String getLanguage()
           
 String getName()
           
 
Methods inherited from class org.sonar.api.profiles.RulesProfile
activateRule, addActiveRule, clone, create, create, equals, getActiveRuleByConfigKey, getActiveRules, getActiveRulesByPlugin, getEnabled, getParentName, getProvided, getUsed, getVersion, hashCode, isEnabled, removeActiveRule, setActiveRules, setDefaultProfile, setEnabled, setLanguage, setName, setParentName, setProvided, setUsed, setVersion, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RulesProfileWrapper

public RulesProfileWrapper(Collection<RulesProfile> profiles)

RulesProfileWrapper

public RulesProfileWrapper(RulesProfile profile)
Method Detail

getId

public Integer getId()
Overrides:
getId in class RulesProfile

getName

public String getName()
Overrides:
getName in class RulesProfile

getLanguage

public String getLanguage()
Overrides:
getLanguage in class RulesProfile

getActiveRules

public List<ActiveRule> getActiveRules()
Overrides:
getActiveRules in class RulesProfile

getActiveRule

public ActiveRule getActiveRule(String repositoryKey,
                                String ruleKey)
Overrides:
getActiveRule in class RulesProfile

getActiveRulesByRepository

public List<ActiveRule> getActiveRulesByRepository(String repositoryKey)
Overrides:
getActiveRulesByRepository in class RulesProfile

getActiveRules

public List<ActiveRule> getActiveRules(boolean acceptDisabledRules)
Overrides:
getActiveRules in class RulesProfile

getActiveRule

public ActiveRule getActiveRule(Rule rule)
Overrides:
getActiveRule in class RulesProfile

getDefaultProfile

public Boolean getDefaultProfile()
Overrides:
getDefaultProfile in class RulesProfile


Copyright © 2009–2015 SonarSource. All rights reserved.