org.sonar.plugins.checkstyle
Class CheckstyleRulesRepository

java.lang.Object
  extended by org.sonar.plugins.checkstyle.CheckstyleRulesRepository
All Implemented Interfaces:
ConfigurationExportable, ConfigurationImportable, RulesRepository

public class CheckstyleRulesRepository
extends java.lang.Object
implements RulesRepository, ConfigurationExportable, ConfigurationImportable


Constructor Summary
CheckstyleRulesRepository()
           
 
Method Summary
protected  java.lang.String addHeaderToXml(java.lang.String xmlModules)
           
protected  void buildActiveRulesFromModuleTree(Module moduleTree, java.lang.String modulePath, java.util.List<ActiveRule> activeRules, java.util.List<Rule> rules)
           
protected  Module buildModuleTree(java.util.List<ActiveRule> activeRules)
           
protected  Module buildModuleTreeFromXml(java.lang.String configuration)
           
protected  java.lang.String buildXmlFromModuleTree(Module tree)
           
 java.lang.String exportConfiguration(RulesProfile activeProfile)
           
 java.util.List<Rule> getInitialReferential()
           
 java.util.List<RulesProfile> getProvidedProfiles()
           
 java.util.List<ActiveRule> importConfiguration(java.lang.String configuration, java.util.List<Rule> rules)
           
 java.util.List<Rule> parseReferential(java.lang.String fileContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckstyleRulesRepository

public CheckstyleRulesRepository()
Method Detail

getInitialReferential

public java.util.List<Rule> getInitialReferential()
Specified by:
getInitialReferential in interface RulesRepository

parseReferential

public java.util.List<Rule> parseReferential(java.lang.String fileContent)
Specified by:
parseReferential in interface RulesRepository

getProvidedProfiles

public java.util.List<RulesProfile> getProvidedProfiles()
Specified by:
getProvidedProfiles in interface RulesRepository

exportConfiguration

public java.lang.String exportConfiguration(RulesProfile activeProfile)
Specified by:
exportConfiguration in interface ConfigurationExportable

importConfiguration

public java.util.List<ActiveRule> importConfiguration(java.lang.String configuration,
                                                      java.util.List<Rule> rules)
Specified by:
importConfiguration in interface ConfigurationImportable

buildModuleTree

protected Module buildModuleTree(java.util.List<ActiveRule> activeRules)

buildXmlFromModuleTree

protected java.lang.String buildXmlFromModuleTree(Module tree)

addHeaderToXml

protected java.lang.String addHeaderToXml(java.lang.String xmlModules)

buildModuleTreeFromXml

protected Module buildModuleTreeFromXml(java.lang.String configuration)

buildActiveRulesFromModuleTree

protected void buildActiveRulesFromModuleTree(Module moduleTree,
                                              java.lang.String modulePath,
                                              java.util.List<ActiveRule> activeRules,
                                              java.util.List<Rule> rules)


Copyright © 2007-2008 hortis. All Rights Reserved.