diff options
author | David Gageot <david@gageot.net> | 2012-07-05 09:28:50 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-05 09:28:50 +0200 |
commit | e8f9f465365d336d69276cd392262b64a1516501 (patch) | |
tree | d45b23920951667102595425518f05bbd52c3cac /sonar-plugin-api | |
parent | 0607151797ad10b8905a85b8345019a35a10959c (diff) | |
download | sonarqube-e8f9f465365d336d69276cd392262b64a1516501.tar.gz sonarqube-e8f9f465365d336d69276cd392262b64a1516501.zip |
Revert "SONAR-3529 First baby step in providing property sets"
This reverts commit b547f32a3de0381e41b2da6cfab1545f7447b315.
Diffstat (limited to 'sonar-plugin-api')
4 files changed, 0 insertions, 78 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/PropertyValidation.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/PropertyValidation.java deleted file mode 100644 index d49158d732e..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/PropertyValidation.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2012 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.api.web; - -public interface PropertyValidation { - boolean validate(String value); - - class None implements PropertyValidation { - public boolean validate(String value) { - return true; - } - }; -} diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperties.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperties.java index f4fd18a874f..03b302cd395 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperties.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperties.java @@ -25,6 +25,4 @@ import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface WidgetProperties { WidgetProperty[] value() default {}; - - WidgetPropertySet[] sets() default {}; } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperty.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperty.java index 652076a1d48..4fd661a7dfb 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperty.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetProperty.java @@ -37,6 +37,4 @@ public @interface WidgetProperty { String description() default ""; boolean optional() default true; - - Class<? extends PropertyValidation> validation() default PropertyValidation.None.class; } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetPropertySet.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetPropertySet.java deleted file mode 100644 index 28de523e788..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetPropertySet.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2012 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.api.web; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - -@Retention(RetentionPolicy.RUNTIME) -public @interface WidgetPropertySet { - String key(); - - WidgetProperty[] value(); - - static WidgetPropertySet DEFAULT = new WidgetPropertySet() { - public Class<WidgetPropertySet> annotationType() { - return WidgetPropertySet.class; - } - - public WidgetProperty[] value() { - return null; - } - - public String key() { - return ""; - } - }; -} |