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 java.lang.Object
implements RulesRepository<LANG>


Constructor Summary
AbstractRulesRepository(LANG language, MAPPER levelMapper)
           
 
Method Summary
protected  java.lang.String getCheckResourcesBase()
           
 java.util.List<Rule> getInitialReferential()
           
 LANG getLanguage()
           
abstract  java.lang.String getRepositoryResourcesBase()
           
 MAPPER getRulePriorityMapper()
           
 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
 
Methods inherited from interface org.sonar.api.rules.RulesRepository
getProvidedProfiles
 

Constructor Detail

AbstractRulesRepository

public AbstractRulesRepository(LANG language,
                               MAPPER levelMapper)
Method Detail

getLanguage

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

getRepositoryResourcesBase

public abstract java.lang.String getRepositoryResourcesBase()

getInitialReferential

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

parseReferential

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

getRulePriorityMapper

public MAPPER getRulePriorityMapper()

getCheckResourcesBase

protected java.lang.String getCheckResourcesBase()


Copyright © 2009 SonarSource SA. All Rights Reserved.