org.sonar.api.rules
Class CheckToRuleRepositoryBridge
java.lang.Object
org.sonar.api.rules.CheckToRuleRepositoryBridge
- All Implemented Interfaces:
- BatchExtension, Extension, RulesRepository, ServerExtension
public abstract class CheckToRuleRepositoryBridge
- extends Object
- implements RulesRepository
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckToRuleRepositoryBridge
public CheckToRuleRepositoryBridge(Language language,
CheckTemplateRepository checkTemplateRepository)
getLanguage
public Language getLanguage()
- Specified by:
getLanguage in interface RulesRepository
- Returns:
- the language the repository is associated
getInitialReferential
public List<Rule> getInitialReferential()
- Specified by:
getInitialReferential in interface RulesRepository
- Returns:
- the list of rules of the repository
parseReferential
public List<Rule> parseReferential(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
- Parameters:
fileContent - the initial referential
- Returns:
- a list of rules
getProvidedProfiles
public List<RulesProfile> getProvidedProfiles()
- Specified by:
getProvidedProfiles in interface RulesRepository
- Returns:
- a list of profiles that are provided with the referential
Copyright © 2009-2010 SonarSource SA. All Rights Reserved.