org.sonar.api.rules
Class AbstractRulesRepository<LANG extends Language,MAPPER extends RulePriorityMapper<?,?>>

java.lang.Object
  extended by org.sonar.api.rules.AbstractRulesRepository<LANG,MAPPER>
All Implemented Interfaces:
BatchExtension, Extension, RulesRepository<LANG>, ServerExtension
Direct Known Subclasses:
AbstractImportableRulesRepository

public abstract class AbstractRulesRepository<LANG extends Language,MAPPER extends RulePriorityMapper<?,?>>
extends Object
implements RulesRepository<LANG>


Constructor Summary
AbstractRulesRepository(LANG language, MAPPER priorityMapper)
           
 
Method Summary
protected  String getCheckResourcesBase()
           
 List<Rule> getInitialReferential()
           
 LANG getLanguage()
           
abstract  String getRepositoryResourcesBase()
           
 MAPPER getRulePriorityMapper()
           
 List<Rule> parseReferential(String fileContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonar.api.rules.RulesRepository
getProvidedProfiles
 

Constructor Detail

AbstractRulesRepository

public AbstractRulesRepository(LANG language,
                               MAPPER priorityMapper)
Method Detail

getLanguage

public LANG getLanguage()
Specified by:
getLanguage in interface RulesRepository<LANG extends Language>

getRepositoryResourcesBase

public abstract String getRepositoryResourcesBase()

getInitialReferential

public final List<Rule> getInitialReferential()
Specified by:
getInitialReferential in interface RulesRepository<LANG extends Language>

parseReferential

public List<Rule> parseReferential(String fileContent)
Specified by:
parseReferential in interface RulesRepository<LANG extends Language>

getRulePriorityMapper

public MAPPER getRulePriorityMapper()

getCheckResourcesBase

protected String getCheckResourcesBase()


Copyright © 2009 SonarSource SA. All Rights Reserved.