@ServerSide @ExtensionPoint public abstract class ProfileImporter extends Object
Modifier | Constructor and Description |
---|---|
protected |
ProfileImporter(String key,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getKey() |
String |
getName() |
String[] |
getSupportedLanguages() |
int |
hashCode() |
abstract RulesProfile |
importProfile(Reader reader,
ValidationMessages messages)
Import the profile from a reader.
|
ProfileImporter |
setKey(String s) |
ProfileImporter |
setName(String s) |
protected ProfileImporter |
setSupportedLanguages(String... languages)
Set the list of languages supported
An empty value means that it will be available for every languages.
|
String |
toString() |
protected ProfileImporter(String key, String name)
public abstract RulesProfile importProfile(Reader reader, ValidationMessages messages)
ValidationMessages.warnings
can be used to return some warnings to the user, for instance when some rules doesn't exist.
ValidationMessages.errors
can be used when an unrecoverable error is generating during import. No quality profile will be created.public final ProfileImporter setKey(String s)
public final ProfileImporter setName(String s)
protected final ProfileImporter setSupportedLanguages(String... languages)
public String[] getSupportedLanguages()
Copyright © 2009–2018 SonarSource. All rights reserved.