Package org.sonar.api
Annotation Type Property
- 
 @Retention(RUNTIME) @Target(TYPE) public @interface PropertyProperty value can be set in different ways :- System property
- Batch command-line (-Dfoo=bar in Maven or sonar-runner)
- Maven pom.xml (element <properties>)
- Maven settings.xml
- SonarQube web administration console
 - Since:
- 1.10
 
- 
- 
Optional Element SummaryOptional Elements Modifier and Type Optional Element Description java.lang.Stringcategoryjava.lang.StringdefaultValueThe empty string "" is considered as null, so it's not possible to have empty strings for default values.java.lang.StringdeprecatedKeyRelocation of key.java.lang.StringdescriptionPropertyField[]fieldsA Property with fields is considered a property set.booleanglobalIs the property displayed in global settings page ?booleanmoduleDeprecated, for removal: This API element is subject to removal in a future version.since 10.13.booleanmultiValuesCan the property take multiple values.java.lang.String[]optionsOptions for *_LIST typesbooleanprojectIs the property displayed in project settings page ?PropertyTypetype
 
- 
- 
- 
- 
categoryjava.lang.String category - Since:
- 2.11
- See Also:
- PropertyDefinition.category()
 - Default:
- ""
 
 
- 
 - 
- 
typePropertyType type - Since:
- 3.0
 - Default:
- org.sonar.api.PropertyType.STRING
 
 
- 
 - 
- 
optionsjava.lang.String[] options Options for *_LIST types- Since:
- 3.0  Options for property of type PropertyType.SINGLE_SELECT_LISTFor example {"property_1", "property_3", "property_3"}).
 - Default:
- {}
 
 
- 
 - 
- 
fieldsPropertyField[] fields A Property with fields is considered a property set.- Since:
- 3.3
 - Default:
- {}
 
 
- 
 
-