public class DefaultIssue extends DefaultStorable implements Issue, NewIssue
Issue.Flowstorage| 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. |
Double |
gap()
Gap used to compute the effort for fixing the issue.
|
DefaultIssue |
gap(Double gap)
Gap used for the computation of the effort.
|
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, toStringpublic DefaultIssue()
public DefaultIssue(SensorStorage storage)
public DefaultIssue forRule(RuleKey ruleKey)
NewIssueRuleKey of the issue.public DefaultIssue effortToFix(@Nullable Double effortToFix)
NewIssueeffortToFix in interface NewIssuepublic DefaultIssue gap(@Nullable Double gap)
NewIssuepublic DefaultIssue overrideSeverity(@Nullable Severity severity)
NewIssueoverrideSeverity in interface NewIssuepublic NewIssueLocation newLocation()
NewIssuenewLocation in interface NewIssuepublic DefaultIssue at(NewIssueLocation primaryLocation)
NewIssuepublic NewIssue addLocation(NewIssueLocation secondaryLocation)
NewIssueaddLocation in interface NewIssuepublic DefaultIssue addFlow(Iterable<NewIssueLocation> locations)
NewIssuepublic RuleKey ruleKey()
IssueRuleKey of this issue.public Severity overriddenSeverity()
IssueoverriddenSeverity in interface Issuepublic Double gap()
Issuepublic Double effortToFix()
IssueeffortToFix in interface Issuepublic IssueLocation primaryLocation()
IssueprimaryLocation in interface Issuepublic List<Issue.Flow> flows()
Issuepublic void doSave()
doSave in class DefaultStorableCopyright © 2009–2017 SonarSource. All rights reserved.