public class DefaultIssue extends DefaultStorable implements Issue, NewIssue
Issue.Flow
storage
Constructor and Description |
---|
DefaultIssue() |
DefaultIssue(SensorStorage storage) |
Modifier and Type | Method and Description |
---|---|
DefaultIssue |
addFlow(Iterable<NewIssueLocation> locations)
Register a flow for this issue.
|
NewIssue |
addLocation(NewIssueLocation secondaryLocation)
Add a secondary location for this issue.
|
DefaultIssue |
at(NewIssueLocation primaryLocation)
Primary location for this issue.
|
void |
doSave() |
Double |
effortToFix()
Effort to fix the issue.
|
DefaultIssue |
effortToFix(Double effortToFix)
Effort to fix the issue.
|
List<Issue.Flow> |
flows()
List of flows for this issue.
|
DefaultIssue |
forRule(RuleKey ruleKey)
The
RuleKey of the issue. |
NewIssueLocation |
newLocation()
Create a new location for this issue.
|
Severity |
overriddenSeverity()
Overridden severity.
|
DefaultIssue |
overrideSeverity(Severity severity)
Override severity of the issue.
|
IssueLocation |
primaryLocation()
Primary locations for this issue.
|
RuleKey |
ruleKey()
The
RuleKey of this issue. |
save, toString, validateLineArgument
public DefaultIssue()
public DefaultIssue(SensorStorage storage)
public DefaultIssue forRule(RuleKey ruleKey)
NewIssue
RuleKey
of the issue.public DefaultIssue effortToFix(@Nullable Double effortToFix)
NewIssue
effortToFix
in interface NewIssue
public DefaultIssue overrideSeverity(@Nullable Severity severity)
NewIssue
overrideSeverity
in interface NewIssue
public NewIssueLocation newLocation()
NewIssue
newLocation
in interface NewIssue
public DefaultIssue at(NewIssueLocation primaryLocation)
NewIssue
public NewIssue addLocation(NewIssueLocation secondaryLocation)
NewIssue
addLocation
in interface NewIssue
public DefaultIssue addFlow(Iterable<NewIssueLocation> locations)
NewIssue
public RuleKey ruleKey()
Issue
RuleKey
of this issue.public Severity overriddenSeverity()
Issue
overriddenSeverity
in interface Issue
public Double effortToFix()
Issue
effortToFix
in interface Issue
public IssueLocation primaryLocation()
Issue
primaryLocation
in interface Issue
public List<Issue.Flow> flows()
Issue
public void doSave()
doSave
in class DefaultStorable
Copyright © 2009–2016 SonarSource. All rights reserved.