org.sonar.api.batch.sensor.issue.internal
Class DefaultIssue

java.lang.Object
  extended by org.sonar.api.batch.sensor.issue.internal.DefaultIssue
All Implemented Interfaces:
Serializable, Issue

public class DefaultIssue
extends Object
implements Issue, Serializable

See Also:
Serialized Form

Method Summary
 Double effortToFix()
          Effort to fix the issue.
 boolean equals(Object o)
           
 int hashCode()
           
 InputPath inputPath()
          The InputPath 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.
 void setMessage(String message)
           
 void setSeverity(String severity)
           
 String severity()
          See constants in Severity.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

key

public String key()

inputPath

@Nullable
public InputPath inputPath()
Description copied from interface: Issue
The InputPath this issue belongs to. Returns null if issue is global to the project.

Specified by:
inputPath in interface Issue

ruleKey

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

Specified by:
ruleKey in interface Issue

message

@CheckForNull
public String message()
Description copied from interface: Issue
Message of the issue.

Specified by:
message in interface Issue

setMessage

public void setMessage(String message)

line

public Integer line()
Description copied from interface: Issue
Line of the issue. Null for global issues and issues on directories. Can also be null for files (issue global to the file).

Specified by:
line in interface Issue

effortToFix

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

Specified by:
effortToFix in interface Issue

severity

@CheckForNull
public String severity()
Description copied from interface: Issue
See constants in Severity. Can be null before issue is saved. Means to use severity configured in quality profile.

Specified by:
severity in interface Issue

setSeverity

public void setSeverity(String severity)

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.