/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program 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. * * This program 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 this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.sonar.api; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Property value can be set in different ways : *
key:REGEXP
, domain:REGEXP
and type:comma_separated__list_of_types
.
* For example key:new_.*
will match any metric which key starts by new_
.
* For example type:INT,FLOAT
will match any metric of type INT
or FLOAT
.
* For example type:NUMERIC
will match any metric of numerictype.
*/
String[] options() default {};
/**
* Can the property take multiple values. Eg: list of email addresses.
*
* @since 3.3
*/
boolean multiValues() default false;
/**
* A Property of type PropertyType.PROPERTY_SET
can reference a set of properties
* by its key.
*
* @since 3.3
*/
String propertySetKey() default "";
/**
* A Property with fields is considered a property set.
*
* @since 3.3
*/
PropertyField[] fields() default {};
/**
* Relocation of key.
* @since 3.4
*/
String deprecatedKey() default "";
}