org.sonar.api.rules
Class AbstractRulesRepository<LANG extends Language,MAPPER extends RulePriorityMapper<?,?>>
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRulesRepository
public AbstractRulesRepository(LANG language,
MAPPER priorityMapper)
getLanguage
public LANG getLanguage()
- Specified by:
getLanguage
in interface RulesRepository<LANG extends Language>
- Returns:
- the language the repository is associated
getRepositoryResourcesBase
public abstract java.lang.String getRepositoryResourcesBase()
getInitialReferential
public final java.util.List<Rule> getInitialReferential()
- Specified by:
getInitialReferential
in interface RulesRepository<LANG extends Language>
- Returns:
- the list of rules of the repository
parseReferential
public java.util.List<Rule> parseReferential(java.lang.String fileContent)
- Description copied from interface:
RulesRepository
- The method to parse the base referential of rules and return a list of rules
- Specified by:
parseReferential
in interface RulesRepository<LANG extends Language>
- Parameters:
fileContent
- the initial referential
- Returns:
- a list of rules
getRulePriorityMapper
public MAPPER getRulePriorityMapper()
getCheckResourcesBase
protected java.lang.String getCheckResourcesBase()
Copyright © 2009-2010 SonarSource SA. All Rights Reserved.