org.sonar.check
Annotation Type RuleProperty


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface RuleProperty

Since:
2.3

Optional Element Summary
 String defaultValue
          Optional default value.
 String description
          Optional description
 String key
          The default key is the field name, read by reflection.
 String type
          Optional type of property value.
 

key

public abstract String key
The default key is the field name, read by reflection. Overriding this key can be useful when obfuscating the code.

Default:
""

description

public abstract String description
Optional description

Default:
""

defaultValue

public abstract String defaultValue
Optional default value.

Default:
""

type

public abstract String type
Optional type of property value. Supported values are: STRING, TEXT, PASSWORD, BOOLEAN, INTEGER, FLOAT. If type is omitted, it is guessed from the type of the annotated field.

Since:
3.2
Default:
""


Copyright © 2009-2014 SonarSource. All Rights Reserved.