aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-01-07 17:57:48 +0100
committerTeryk Bellahsene <teryk@users.noreply.github.com>2018-01-08 18:54:38 +0100
commit21a3f68885937ed74236715d095baf1d00796b90 (patch)
treea853c8e7c18b3e01d7644488707db6234eca36e7 /sonar-plugin-api
parent4a08bd82b4ad2802cd38a1d352e8b7137773ed34 (diff)
downloadsonarqube-21a3f68885937ed74236715d095baf1d00796b90.tar.gz
sonarqube-21a3f68885937ed74236715d095baf1d00796b90.zip
Add javadoc to WebService.NewParam
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
index a6aa3423571..900f5c0b29b 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
@@ -645,6 +645,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 5.3
+ * @see Param#since()
*/
public NewParam setSince(@Nullable String since) {
this.since = since;
@@ -673,6 +674,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @param deprecatedSince Version when the old key was replaced/deprecated. Ex: 5.6
* @since 6.4
+ * @see Param#deprecatedKey()
*/
public NewParam setDeprecatedKey(@Nullable String key, @Nullable String deprecatedSince) {
this.deprecatedKey = key;
@@ -687,6 +689,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 5.6
+ * @see Param#description()
*/
public NewParam setDescription(@Nullable String description, Object... descriptionArgument) {
this.description = description == null ? null : String.format(description, descriptionArgument);
@@ -697,6 +700,7 @@ public interface WebService extends Definable<WebService.Context> {
* Is the parameter required or optional ? Default value is false (optional).
*
* @since 4.4
+ * @see Param#isRequired()
*/
public NewParam setRequired(boolean b) {
this.required = b;
@@ -709,6 +713,7 @@ public interface WebService extends Definable<WebService.Context> {
* a parameter is not internal.
*
* @since 6.2
+ * @see Param#isInternal()
*/
public NewParam setInternal(boolean b) {
this.internal = b;
@@ -717,6 +722,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 4.4
+ * @see Param#exampleValue()
*/
public NewParam setExampleValue(@Nullable Object s) {
this.exampleValue = (s != null) ? s.toString() : null;
@@ -728,12 +734,14 @@ public interface WebService extends Definable<WebService.Context> {
* list of severities.
*
* @since 4.4
+ * @see Param#possibleValues()
*/
public NewParam setPossibleValues(@Nullable Object... values) {
return setPossibleValues(values == null ? Collections.emptyList() : asList(values));
}
/**
+ * Shortcut for {@code setPossibleValues("true", "false", "yes", "no")}
* @since 4.4
*/
public NewParam setBooleanPossibleValues() {
@@ -745,6 +753,7 @@ public interface WebService extends Definable<WebService.Context> {
* list of severities.
*
* @since 4.4
+ * @see Param#possibleValues()
*/
public NewParam setPossibleValues(@Nullable Collection<?> values) {
if (values == null || values.isEmpty()) {
@@ -760,6 +769,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 4.4
+ * @see Param#defaultValue()
*/
public NewParam setDefaultValue(@Nullable Object o) {
this.defaultValue = (o != null) ? o.toString() : null;
@@ -768,6 +778,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 6.4
+ * @see Param#maxValuesAllowed()
*/
public NewParam setMaxValuesAllowed(@Nullable Integer maxValuesAllowed) {
this.maxValuesAllowed = maxValuesAllowed;
@@ -776,6 +787,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 7.0
+ * @see Param#maximumLength()
*/
public NewParam setMaximumLength(@Nullable Integer maximumLength) {
this.maximumLength = maximumLength;
@@ -784,6 +796,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 7.0
+ * @see Param#minimumLength()
*/
public NewParam setMinimumLength(@Nullable Integer minimumLength) {
this.minimumLength = minimumLength;
@@ -792,6 +805,7 @@ public interface WebService extends Definable<WebService.Context> {
/**
* @since 7.0
+ * @see Param#maximumValue()
*/
public NewParam setMaximumValue(@Nullable Integer maximumValue) {
this.maximumValue = maximumValue;