Package org.sonar.api.profiles
Class ProfileExporter
- java.lang.Object
-
- org.sonar.api.profiles.ProfileExporter
-
@ServerSide @ExtensionPoint @Deprecated public abstract class ProfileExporter extends java.lang.Object
Deprecated.since 9.1. Web services should be used instead.Export quality profile rules to a file- Since:
- 2.3
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProfileExporter(java.lang.String key, java.lang.String name)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.abstract voidexportProfile(RulesProfile profile, java.io.Writer writer)Deprecated.Export activated rule from a quality profile to a writer Note that the quality profile can contain some rules from other plugins.java.lang.StringgetKey()Deprecated.java.lang.StringgetMimeType()Deprecated.java.lang.StringgetName()Deprecated.java.lang.String[]getSupportedLanguages()Deprecated.inthashCode()Deprecated.ProfileExportersetKey(java.lang.String s)Deprecated.ProfileExportersetMimeType(java.lang.String s)Deprecated.Set the mime type of the exported fileProfileExportersetName(java.lang.String s)Deprecated.protected ProfileExportersetSupportedLanguages(java.lang.String... languages)Deprecated.Set the list of languages supported An empty value means that it will be available for every languages.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
exportProfile
public abstract void exportProfile(RulesProfile profile, java.io.Writer writer)
Deprecated.Export activated rule from a quality profile to a writer Note that the quality profile can contain some rules from other plugins. It should not fail in this case.
-
getKey
public java.lang.String getKey()
Deprecated.
-
setKey
public final ProfileExporter setKey(java.lang.String s)
Deprecated.
-
getName
public final java.lang.String getName()
Deprecated.
-
setName
public final ProfileExporter setName(java.lang.String s)
Deprecated.
-
setSupportedLanguages
protected final ProfileExporter setSupportedLanguages(java.lang.String... languages)
Deprecated.Set the list of languages supported An empty value means that it will be available for every languages.
-
getMimeType
public java.lang.String getMimeType()
Deprecated.
-
setMimeType
public final ProfileExporter setMimeType(java.lang.String s)
Deprecated.Set the mime type of the exported file
-
getSupportedLanguages
public java.lang.String[] getSupportedLanguages()
Deprecated.- Returns:
- if empty, then any languages are supported.
-
equals
public final boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-