org.sonar.api.batch.rule.internal
Class DefaultRule

java.lang.Object
  extended by org.sonar.api.batch.rule.internal.DefaultRule
All Implemented Interfaces:
Rule

@Immutable
public class DefaultRule
extends Object
implements Rule


Method Summary
 DebtRemediationFunction debtRemediationFunction()
          Remediation function : can by Linear (with a coefficient), Linear with offset (with a coefficient and an offset) or Constant per issue (with an offset)
 String debtSubCharacteristic()
          Sub characteristic key.
 String description()
           
 Integer id()
           
 String internalKey()
           
 RuleKey key()
           
 String name()
           
 RuleParam param(String paramKey)
           
 Collection<RuleParam> params()
           
 String severity()
           
 RuleStatus status()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

key

public RuleKey key()
Specified by:
key in interface Rule

id

@CheckForNull
public Integer id()

name

public String name()
Specified by:
name in interface Rule

severity

public String severity()
Specified by:
severity in interface Rule

description

public String description()
Specified by:
description in interface Rule

internalKey

public String internalKey()
Specified by:
internalKey in interface Rule

status

public RuleStatus status()
Specified by:
status in interface Rule

debtSubCharacteristic

public String debtSubCharacteristic()
Description copied from interface: Rule
Sub characteristic key.

Specified by:
debtSubCharacteristic in interface Rule

debtRemediationFunction

public DebtRemediationFunction debtRemediationFunction()
Description copied from interface: Rule
Remediation function : can by Linear (with a coefficient), Linear with offset (with a coefficient and an offset) or Constant per issue (with an offset)

Specified by:
debtRemediationFunction in interface Rule

param

public RuleParam param(String paramKey)
Specified by:
param in interface Rule

params

public Collection<RuleParam> params()
Specified by:
params in interface Rule


Copyright © 2009-2014 SonarSource. All Rights Reserved.