|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
Issue
RuleKey
of the issue.
ruleKey
in interface Issue
public DefaultIssue onFile(InputFile file)
Issue
InputFile
the issue belongs to. For global issues call Issue.onProject()
.
onFile
in interface Issue
public DefaultIssue onDir(InputDir dir)
Issue
InputDir
the issue belongs to. For global issues call Issue.onProject()
.
onDir
in interface Issue
public DefaultIssue onProject()
Issue
onProject
in interface Issue
public DefaultIssue atLine(int line)
Issue
Issue.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 Issue
public DefaultIssue message(String message)
Issue
message
in interface Issue
public Issue overrideSeverity(@Nullable Issue.Severity severity)
Issue
overrideSeverity
in interface Issue
public RuleKey ruleKey()
Issue
RuleKey
of this issue.
ruleKey
in interface Issue
@CheckForNull public InputPath inputPath()
Issue
InputPath
this issue belongs to. Returns null if issue is global to the project.
inputPath
in interface Issue
public Integer line()
Issue
line
in interface Issue
public String message()
Issue
message
in interface Issue
public Issue.Severity overridenSeverity()
Issue
overridenSeverity
in interface Issue
public Double effortToFix()
Issue
effortToFix
in interface Issue
public String key()
public void doSave()
doSave
in class DefaultStorable
public DefaultIssue withKey(String key)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |