@Retention(value=RUNTIME) @Target(value=TYPE) public @interface WidgetProperty
Modifier and Type | Required Element and Description |
---|---|
String |
key |
Modifier and Type | Optional Element and Description |
---|---|
String |
defaultValue |
String |
description |
boolean |
optional |
String[] |
options |
WidgetPropertyType |
type |
public abstract WidgetPropertyType type
public abstract String defaultValue
public abstract String description
public abstract boolean optional
public abstract String[] options
WidgetPropertyType.METRIC
.
If no option is specified, any metric will match.
If options are specified, all must match for the metric to be displayed.
Three types of filter are supported 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., 3.5 Options for property of type WidgetPropertyType.SINGLE_SELECT_LIST
.
For example {"property_1", "property_3", "property_3"}).Copyright © 2009–2017 SonarSource. All rights reserved.