|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.batch.sensor.internal.DefaultStorable
org.sonar.api.batch.sensor.issue.internal.DefaultIssue
public class DefaultIssue
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.sonar.api.batch.sensor.issue.Issue |
|---|
Issue.Severity |
| Field Summary |
|---|
| Fields inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable |
|---|
storage |
| Constructor Summary | |
|---|---|
DefaultIssue()
|
|
DefaultIssue(SensorStorage storage)
|
|
| Method Summary | |
|---|---|
DefaultIssue |
atLine(int line)
Line of the issue. |
void |
doSave()
|
Double |
effortToFix()
Effort to fix the issue. |
DefaultIssue |
effortToFix(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. |
DefaultIssue |
message(String message)
Message of the issue. |
DefaultIssue |
onDir(InputDir dir)
The InputDir the issue belongs to. |
DefaultIssue |
onFile(InputFile file)
The InputFile the issue belongs to. |
DefaultIssue |
onProject()
Tell that the issue is global to the project. |
Issue.Severity |
overridenSeverity()
Overriden severity. |
Issue |
overrideSeverity(Issue.Severity severity)
Override severity of the issue. |
RuleKey |
ruleKey()
The RuleKey of this issue. |
DefaultIssue |
ruleKey(RuleKey ruleKey)
The RuleKey of the issue. |
DefaultIssue |
withKey(String key)
For testing only. |
| Methods inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable |
|---|
save, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sonar.api.batch.sensor.issue.Issue |
|---|
save |
| Constructor Detail |
|---|
public DefaultIssue()
public DefaultIssue(SensorStorage storage)
| Method Detail |
|---|
public DefaultIssue ruleKey(RuleKey ruleKey)
IssueRuleKey of the issue.
ruleKey in interface Issuepublic DefaultIssue onFile(InputFile file)
IssueInputFile the issue belongs to. For global issues call Issue.onProject().
onFile in interface Issuepublic DefaultIssue onDir(InputDir dir)
IssueInputDir the issue belongs to. For global issues call Issue.onProject().
onDir in interface Issuepublic DefaultIssue onProject()
Issue
onProject in interface Issuepublic DefaultIssue atLine(int line)
IssueIssue.onFile(InputFile) issues.
If no line is specified it means that issue is global to the file.
atLine in interface Issue
public DefaultIssue effortToFix(@Nullable
Double effortToFix)
Issue
effortToFix in interface Issuepublic DefaultIssue message(String message)
Issue
message in interface Issue
public Issue overrideSeverity(@Nullable
Issue.Severity severity)
Issue
overrideSeverity in interface Issuepublic RuleKey ruleKey()
IssueRuleKey of this issue.
ruleKey in interface Issue@CheckForNull public InputPath inputPath()
IssueInputPath this issue belongs to. Returns null if issue is global to the project.
inputPath in interface Issuepublic Integer line()
Issue
line in interface Issuepublic String message()
Issue
message in interface Issuepublic Issue.Severity overridenSeverity()
Issue
overridenSeverity in interface Issuepublic Double effortToFix()
Issue
effortToFix in interface Issuepublic String key()
public void doSave()
doSave in class DefaultStorablepublic DefaultIssue withKey(String key)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||