org.sonar.xoo.rule
Class XooFakeImporter

java.lang.Object
  extended by org.sonar.api.profiles.ProfileImporter
      extended by org.sonar.xoo.rule.XooFakeImporter
All Implemented Interfaces:
Extension, ServerComponent, ServerExtension

public class XooFakeImporter
extends ProfileImporter

Fake importer just for test, it will NOT take into account the given file but will create some hard-coded rules


Constructor Summary
XooFakeImporter()
           
 
Method Summary
 String[] getSupportedLanguages()
           
 RulesProfile importProfile(Reader reader, ValidationMessages messages)
           
 
Methods inherited from class org.sonar.api.profiles.ProfileImporter
equals, getKey, getName, hashCode, setKey, setName, setSupportedLanguages, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XooFakeImporter

public XooFakeImporter()
Method Detail

getSupportedLanguages

public String[] getSupportedLanguages()
Overrides:
getSupportedLanguages in class ProfileImporter
Returns:
if empty, then any languages are supported.

importProfile

public RulesProfile importProfile(Reader reader,
                                  ValidationMessages messages)
Specified by:
importProfile in class ProfileImporter


Copyright © 2009–2015 SonarSource. All rights reserved.