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
 String description()
           
 Integer id()
           
 RuleKey key()
           
 String metadata()
           
 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

metadata

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

status

public RuleStatus status()
Specified by:
status 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.