org.sonar.api.batch.analyzer.issue.internal
Class DefaultAnalyzerIssue

java.lang.Object
  extended by org.sonar.api.batch.analyzer.issue.internal.DefaultAnalyzerIssue
All Implemented Interfaces:
Serializable, AnalyzerIssue

public class DefaultAnalyzerIssue
extends Object
implements AnalyzerIssue, Serializable

See Also:
Serialized Form

Method Summary
 Double effortToFix()
          Effort to fix the issue.
 boolean equals(Object o)
           
 int hashCode()
           
 InputFile inputFile()
          The InputFile this issue belongs to.
 String key()
           
 Integer line()
          Line of the issue.
 String message()
          Message of the issue.
 RuleKey ruleKey()
          The RuleKey of this issue.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

key

public String key()

inputFile

@Nullable
public InputFile inputFile()
Description copied from interface: AnalyzerIssue
The InputFile this issue belongs to. Returns null if issue is global to the project.

Specified by:
inputFile in interface AnalyzerIssue

ruleKey

public RuleKey ruleKey()
Description copied from interface: AnalyzerIssue
The RuleKey of this issue.

Specified by:
ruleKey in interface AnalyzerIssue

message

public String message()
Description copied from interface: AnalyzerIssue
Message of the issue.

Specified by:
message in interface AnalyzerIssue

line

public Integer line()
Description copied from interface: AnalyzerIssue
Line of the issue.

Specified by:
line in interface AnalyzerIssue

effortToFix

@Nullable
public Double effortToFix()
Description copied from interface: AnalyzerIssue
Effort to fix the issue. Used by technical debt model.

Specified by:
effortToFix in interface AnalyzerIssue

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.