org.sonar.api.checks.templates
Class CheckTemplateRepository

java.lang.Object
  extended by org.sonar.api.checks.templates.CheckTemplateRepository
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension, RulesRepository, ServerComponent, ServerExtension

Deprecated. since 2.3

@Deprecated
public class CheckTemplateRepository
extends Object
implements RulesRepository

Since:
2.1 (experimental)

Constructor Summary
CheckTemplateRepository()
          Deprecated.  
CheckTemplateRepository(String key)
          Deprecated.  
 
Method Summary
static CheckTemplateRepository createFromAnnotatedClasses(String repositoryKey, Language language, Collection<Class> classes)
          Deprecated.  
static CheckTemplateRepository createFromXml(String repositoryKey, Language language, String pathToXml)
          Deprecated.  
 boolean equals(Object o)
          Deprecated.  
 List<Rule> getInitialReferential()
          Deprecated.  
 String getKey()
          Deprecated.  
 Language getLanguage()
          Deprecated.  
 List<RulesProfile> getProvidedProfiles()
          Deprecated.  
 CheckTemplate getTemplate(String key)
          Deprecated.  
 List<CheckTemplate> getTemplates()
          Deprecated.  
 int hashCode()
          Deprecated.  
 List<Rule> parseReferential(String fileContent)
          Deprecated. The method to parse the base referential of rules and return a list of rules
 CheckTemplateRepository setKey(String key)
          Deprecated.  
 CheckTemplateRepository setLanguage(Language l)
          Deprecated.  
 CheckTemplateRepository setTemplates(List<CheckTemplate> c)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckTemplateRepository

public CheckTemplateRepository()
Deprecated. 

CheckTemplateRepository

public CheckTemplateRepository(String key)
Deprecated. 
Method Detail

getKey

public String getKey()
Deprecated. 

setKey

public CheckTemplateRepository setKey(String key)
Deprecated. 

getLanguage

public Language getLanguage()
Deprecated. 
Specified by:
getLanguage in interface RulesRepository
Returns:
the language the repository is associated

setLanguage

public CheckTemplateRepository setLanguage(Language l)
Deprecated. 

getTemplates

public List<CheckTemplate> getTemplates()
Deprecated. 

setTemplates

public CheckTemplateRepository setTemplates(List<CheckTemplate> c)
Deprecated. 

getTemplate

public CheckTemplate getTemplate(String key)
Deprecated. 

equals

public boolean equals(Object o)
Deprecated. 
Overrides:
equals in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

createFromXml

public static CheckTemplateRepository createFromXml(String repositoryKey,
                                                    Language language,
                                                    String pathToXml)
Deprecated. 

createFromAnnotatedClasses

public static CheckTemplateRepository createFromAnnotatedClasses(String repositoryKey,
                                                                 Language language,
                                                                 Collection<Class> classes)
Deprecated. 

getInitialReferential

public List<Rule> getInitialReferential()
Deprecated. 
Specified by:
getInitialReferential in interface RulesRepository
Returns:
the list of rules of the repository

parseReferential

public List<Rule> parseReferential(String fileContent)
Deprecated. 
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()
Deprecated. 
Specified by:
getProvidedProfiles in interface RulesRepository
Returns:
a list of profiles that are provided with the referential


Copyright © 2009-2010 SonarSource. All Rights Reserved.