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.
 

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. See for possible values. If type is ommited, it is guessed from the type of the annotated field.

Since:
3.2
Default:
""


Copyright © 2009-2013 SonarSource. All Rights Reserved.